Skip to content

Abolish working-age Housing Benefit from 1 July 2026 (NI 1 October 2026) - #1910

Open
MaxGhenis wants to merge 53 commits into
mainfrom
abolish-working-age-housing-benefit
Open

MaxGhenis wants to merge 53 commits into
mainfrom
abolish-working-age-housing-benefit

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Status (25 November, head 4cd3f146f). The branch includes main at a768ac884, with #2813, #2845, #2927 (the reg. 60(1) course condition) and #2929 (houseboats, caravans and mobile homes leave the Housing Benefit LHA cap). It still waits for PolicyEngine/policyengine-uk-data#534 (for PolicyEngine/policyengine-uk-data#492), which draws would_claim_uc_at_legacy_closure at Move to UC claim rates.

Summary

The Secretary of State abolished working-age Housing Benefit awards from 1 July 2026 in Great Britain, and the Department for Communities from 1 October 2026 in Northern Ireland, with statutory savings in both. On main, PolicyEngine UK still pays an unsaved working-age award in every year through the continuing-award route (reported Housing Benefit and no UC claim). This PR ends that route on the statutory dates and pays 2026-27 for the part of the year before abolition. A family whose award is abolished claims Universal Credit through #2119's closure claim if would_claim_uc_at_legacy_closure is true.

It models three savings: specified or temporary accommodation (main's input, which #2813 made an eligibility route), the Pension Credit age conditions, and the income-related ESA appointee saving. For the ESA saving it adds one input, housing_benefit_claimant_is_saved_esa_claimant.

Law

  • GB: SI 2025/1148 art. 7, inserted by SI 2026/409 art. 2(6) (made 15 April 2026), appoints 1 July 2026 for awards not already terminated under TP regs 7(2), 8(2A) or 46(1)(a) or within a two-week run-on (art. 7(1), (3)). Article 7(4) saves the classes in the table below; article 7(2) delays the date for the specified prisoner restrictions. DWP HB circular A6/2026 gives the same date and saved groups.
  • NI: SR 2025/176 art. 7, inserted by SR 2026/115 art. 2(6), appoints 1 October 2026 with the corresponding savings, including SR 2016/226 reg. 4A(2)–(5).
  • ESA appointee saving: art. 7(4)(b) treats the date as not applying where, immediately before it, the claimant is entitled to income-related ESA and the saving in art. 3A(2) applies (an appointee, or a determination in the previous six months that one was likely needed). "The claimant" is the Housing Benefit claimant, so a partner's saved award alone does not keep the Housing Benefit. NI art. 7(4)(b) does the same with NI art. 3A(2).

Change

  • Parameter gov.dwp.housing_benefit.working_age_awards_payable, with children great_britain and northern_ireland: each is 1 while unprotected working-age awards are payable and 0 from its abolition date, blended over the fiscal year.
  • housing_benefit_payable_share (new; BenUnit, YEAR): 1 for a saved family, otherwise the country's parameter value. Three savings give 1:
    • in_specified_or_temporary_accommodation (reg 6A(2) through art. 7(4)(a));
    • meets_pension_credit_age_conditions (reg 6A(4), and 6A(5) through the SI 2019/37 art. 4 saving); a mixed-age couple without the saving is not saved;
    • the ESA appointee saving (art. 7(4)(b)), on the rule below.
  • The ESA saving's claimant. The model counts a positive esa_income_reported with main's esa_income_appointee_saving only for a member marked is_claimant_or_partner. It takes the Housing Benefit claimant to be a member who reports Housing Benefit, as has_mixed_age_couple_pension_credit_saving takes the reporter. So it keeps the award when at least one member reports Housing Benefit and every reporter has the saved ESA report, and when nobody reports Housing Benefit and the sole claimant has it. housing_benefit_claimant_is_saved_esa_claimant (new; BenUnit, YEAR, default False) can confirm the identity when a claimant or partner has the saved report, whoever reports Housing Benefit. True overrides the reports; False leaves the identity to them and cannot remove one they establish. An adult outside is_claimant_or_partner never saves the family's award, even as the only reporter.
  • housing_benefit_eligible: the continuing-award route needs the share above 0, so it closes from 2027-28 for an unsaved award. main's accommodation route from Model the 2026 income-related ESA abolition and its UC claims #2813 is unchanged.
  • housing_benefit_pre_benefit_cap: the model multiplies entitlement by the share before applying the benefit cap.
  • claims_uc_at_legacy_closure: also true when a family reporting Housing Benefit has a share below 1 and would_claim_uc_at_legacy_closure is true. The claim then ends the same awards as main's claim when the ESA abolition reaches an award: the continuing Housing Benefit award and the claimant's and partner's income-related ESA (esa_income_report_closed). The abolition itself moves no family: legacy_benefits_closed is unchanged.
  • forgoes_universal_credit_for_tax_free_childcare: the model counts reported Housing Benefit among the legacy awards a UC claim would end only while its payable share exceeds 0, as main does for income-related ESA. So from 2027 an unsaved Housing Benefit report no longer holds a family to its UC claim.
  • is_qualifying_young_person_for_universal_credit (Apply SI 2014/1230 reg 28 to the UC qualifying young person test #2845, SI 2014/1230 reg. 28): a person entitled to an existing benefit isn't a UC qualifying young person. A Housing Benefit report now counts as entitlement only while the family's payable share exceeds 0, or while disable_simulated_benefits is on, as main already does for income-related ESA through esa_income_payable_share. From 2027 an unsaved report no longer excludes a young person. Scotland's working-age Council Tax Reduction reads the same definition, so it follows. In 2026 the share stays above 0, so the report still excludes for the whole year unless DWP's move off legacy benefits (legacy_benefits_closed) ends the family's award, or a Universal Credit claim, including the claim at the abolition, ends a claimant's or partner's own award.
  • uc_is_excepted_from_education_condition (Require a reg. 12(2) course for the reg. 60(1) education protection #2927, merged in): the reg. 60(1) protection, reg. 61(1) in Northern Ireland, needs a full-time course that UC Regs reg. 12(2) covers: advanced education, or a course with a student loan or grant for maintenance. Without it, the abolition claim gave the exception to an 18-year-old in Northern Ireland on an unfunded non-advanced course whose only existing benefit is a rate rebate, which the claim ends before the award starts, and paid them £4,062.96 of UC (uc_receiving_education.yaml case 49). In Great Britain the same student's Housing Benefit runs on past the first day, so they meet the condition without the exception.
  • disable_simulated_benefits: NOT_MOVED also holds claims_uc_at_legacy_closure. The abolition claim reads housing_benefit_payable_share directly, so holding the migration and the income-related ESA abolition did not hold it, and the reform moved a Housing Benefit family onto a UC claim. In its years, the dataset year and the nine after it, the reform now moves no family, as it intends. It holds the claim, not the abolition: from 2027-28 an unsaved award loses housing_benefit_eligible, while the reform still pays the reported Housing Benefit.
  • Documentation: uc_is_excepted_from_education_condition states the migration-notice assumption behind treating the abolition claim as a reg. 48 qualifying claim; is_uc_eligible, legacy_benefits_closed, would_claim_uc_at_legacy_closure and the take-up parameter describe the abolition; the notebook gains an "Abolition of working-age awards" section. Housing Benefit becomes partial in programs.yaml.

How a mid-year date applies to a YEAR period

PE-UK period 2026 means FY 2026-27. convert_to_fiscal_year_parameters (utils/parameters.py) normally samples each parameter on 30 April. For parameters with fiscal_year_blend: true, it takes a day-weighted average over 6 April to 5 April instead. PE 2026 therefore reads:

  • 86/365 = 0.2356 in GB, for 6 April to 30 June;
  • 178/365 = 0.4877 in NI, for 6 April to 30 September.

From 2027 they read 0, and before 2026 they read 1. The model does not apply Housing Benefit's part-week rules for the week containing abolition.

Reforms. A bare-year value, for example {"...great_britain": {"2026": 1}}, sets that fiscal year's share; a key dated inside the year (2026-07-01) leaves the 2026 share at 86/365 (tested). Use whole-year values or a date range for annual reform scenarios.

Savings: modelled, approximated and unmodelled

Statutory saved class Model coverage and limitation
Specified or temporary accommodation: GB reg. 6A(2); NI reg. 4A(2); art. 7(4)(a) Explicit input (in_specified_or_temporary_accommodation, read by #2813's route). True keeps share 1 in every year. Accommodation-specific eligible-rent and benefit-cap rules are not modelled (#1911).
Qualifying final UC assessment-period case on reaching Pension Credit age: GB reg. 6A(3); NI reg. 4A(3) Not modelled. No input records the final assessment period or the decision history.
Pension-age singles and couples both over the qualifying age: GB reg. 6A(4); NI reg. 4A(4) Modelled through meets_pension_credit_age_conditions, which reads the claimant and partner.
Protected mixed-age couples: GB reg. 6A(5) and SI 2019/37 art. 4; NI reg. 4A(5) Inferred from current receipt (has_mixed_age_couple_pension_credit_saving). An unsaved mixed-age couple loses its award like a working-age family.
Income-related ESA appointee saving: art. 7(4)(b), importing art. 3A(2) Modelled from reports (esa_income_appointee_saving, with the claimant rule above). The model infers entitlement immediately before the date from current receipt. Without the supplied confirmation, a dependent child's Housing Benefit report blocks the saving (#2923).
Delayed abolition for restricted prisoner cases: art. 7(2) Not modelled. It needs the UC reg. 19(1)(b)/(c) restriction immediately before the date and the release date.

uk-data 1.58.1, the certified dataset CI measures, writes none of in_specified_or_temporary_accommodation, esa_income_appointee_saving, housing_benefit_claimant_is_saved_esa_claimant or would_claim_uc_at_legacy_closure. So on that data no family is saved by accommodation or the ESA saving, and every unsaved working-age reporter claims at the abolition.

What happens to families that lose Housing Benefit

  • A family that claims (would_claim_uc_at_legacy_closure, default true) gets Universal Credit for the whole model year, and its continuing Housing Benefit award and the claimant's and partner's income-related ESA end. In 2026 the model does not split the year into Housing Benefit to the abolition date and UC after it.
  • A family that does not claim keeps Housing Benefit for the part of the year before the abolition date (none from 2027), unless migration has already ended it. The Housing Benefit abolition ends no other legacy award; each stays subject to its own closure and abolition rules.
  • A family already claiming UC (would_claim_uc): from 2027 an unsaved Housing Benefit report no longer blocks its Tax-Free Childcare choice. If the existing comparison favours Tax-Free Childcare, the model pays it no UC.
  • A family saved from this abolition has share 1, so the Housing Benefit abolition adds no UC claim. Migration and the income-related ESA abolition can still prompt one.

Until PolicyEngine/policyengine-uk-data#534 lands, every unsaved working-age reporter not already claiming UC claims at the abolition. That is an upper bound: DWP's rates after a migration notice are 74.8% for Housing Benefit-only households and 97.4% for Housing Benefit with another legacy benefit (Stat-Xplore "Households invited to Move to Universal Credit", tables MtUC Households 3 and 6, to end of March 2026). The model omits transitional protection (#1912); an art. 7 termination carries none.

Invariants

test_housing_benefit_working_age_abolition_properties.py checks these. Items 2 to 7 use generated families without the ESA appointee saving and with would_claim_uc_at_legacy_closure false; item 8 tests the claim:

  1. Parameter: each fiscal year's value equals the jurisdiction's independently counted share before the statutory date.
  2. Bounds and protection: 0 ≤ payable share ≤ 1; it is 1 for a family meeting the Pension Credit age conditions or with the accommodation input, in every year and both jurisdictions.
  3. Abolition: from 2027, no other family receives Housing Benefit.
  4. Differential: against a reform keeping awards payable, unsaved pre-cap Housing Benefit equals the preserved amount times the share; saved awards are unchanged.
  5. Monotonic: the abolition never raises anyone's Housing Benefit and never changes Universal Credit.
  6. Structural: only families with the accommodation input get both Housing Benefit and UC; their UC housing costs element is 0, and 0 ≤ Housing Benefit ≤ rent.
  7. Default: omitting the accommodation input gives the same Housing Benefit and UC as explicit False.
  8. Claim at abolition: from 2026 a family that claims gets no Housing Benefit and the UC of any claim; one that does not claim gets no UC; before 2026 the flag changes nothing. The claim ends the claimant's and partner's income-related ESA and leaves a separate adult's own award.

housing_benefit_working_age_abolition.yaml tests the ESA saving's reporter rule, sole-claimant path and supplied confirmation in GB and NI, in 2026 and 2027. The cases include an outside adult as the only reporter, a second reporter without the saved award, and a couple whose two reporters both hold it.

main's property tests that read 2026 legacy families now pin would_claim_uc_at_legacy_closure false where they test something else (pension-age Housing Benefit claims, benefit-cap LHA split), and test_mixed_age_couple_properties.py adds the abolition's split between saved and unsaved mixed-age couples.

Validation

CI at 4cd3f146f passed every job on the first attempt. Fix evidence and the aggregate-impact job passed; “Dataset impact” gives the latter's result.

Locally at 006bef13e, the merge with main a768ac884, every test file that this PR or main's changes since 51e3c1121 touch passes: 13 YAML files and folders, the Housing Benefit folder's 769 cases among them, and 15 Python test files. At 4cd3f146f, housing_benefit_working_age_abolition.yaml gives 45 passed. With the tenure test reading LHA_eligible again, its new 2026 caravan case fails.

Locally at 0eec18a48:

  • YAML: 55 files, 952 passed. These include the files this PR, Apply SI 2014/1230 reg 28 to the UC qualifying young person test #2845 and Require a reg. 12(2) course for the reg. 60(1) education protection #2927 change, and other files on the closure, education and young person paths.
  • Property and contract tests: 16 files, 303 passed: the young person, education, legacy closure, Housing Benefit and ESA abolition, benefit cap, Council Tax Reduction and disable_simulated_benefits tests, and test_non_dependant_cycle_contracts.py.
  • Checks that the tests catch each bug.
    • The reg. 28 gate (1bfb461b0). With the formula before it swapped in, uc_qualifying_young_person_existing_benefits.yaml fails its three new 2027 cases that expect no exclusion (3 failed, 18 passed), and its case for an award in specified or temporary accommodation passes, as it should. The two young-person property tests fail too: test_the_predicate_is_reg_5_less_reg_28 and test_education_condition_invariants. Dropping the disable_simulated_benefits branch from the gate fails two 2027 cases in test_disable_simulated_benefits.py.
    • The reg. 12(2) course condition (Require a reg. 12(2) course for the reg. 60(1) education protection #2927). Dropping it from the migrated-student limb fails cases 38, 48 and 49 of uc_receiving_education.yaml (3 failed, 47 passed). On Require a reg. 12(2) course for the reg. 60(1) education protection #2927 alone it also fails test_reg_60_protection_follows_the_closure_dates, test_education_condition_invariants and test_examples_reach_the_cases.
    • The reform's hold on the abolition claim (0eec18a48). Taking claims_uc_at_legacy_closure out of the inputs disable_simulated_benefits holds fails test_the_housing_benefit_abolition_prompts_no_claim (1 failed, 3 passed).

At 026fd91fd, whose commits after 0eec18a48 change comments, docstrings, references, the changelog and tests but no formula: uc_receiving_education.yaml, 50 passed; test_disable_simulated_benefits.py, 62 passed; test_uc_receiving_education_properties.py, 5 passed. Without the course condition, test_examples_reach_the_cases now fails on the eligibility of YAML case 48's claimant, whom #2927 adds to its examples. 4b1d71d64 and 86530fe54 then change only docstrings, comments and references, and uc_receiving_education.yaml still gives 50 passed. After 0b344de7e, which changes docstrings, comments, the changelog and case 49's comment, it still gives 50 passed.

Runs at earlier commits. At 0b344de7e, CI and Fix evidence passed every job on the first attempt. At 86530fe54, CI passed every job; the Documentation build failed once on a transient fault (its renderer could not connect to the build's own local server on port 3100) and passed on a rerun. At 1bfb461b0, CI passed every job; the 90-minute job limit cancelled Python shard 4 on the first attempt with no test failing, and a rerun passed. At a562b10d7, before the merge with main 98381bf49, CI passed every job, after reruns of Python shards the 90-minute limit cancelled with no test failing. At 168a9481d, CI passed every job.

Independent review: GPT-6.2 Sol approved in round 11 at 86530fe54, with every earlier finding closed; 0b344de7e applies its three remaining wording points. In the merge with main a768ac884, Git combined housing_benefit_eligible's formula with #2929's tenure test without a conflict, and both conflicts were in text. A check of that merge by Claude Code agents (not an independent review) found no fault and one missing test, which 4cd3f146f adds.

Dataset impact

The Aggregate impact job measured this head merged into main (22b803022b) against main (a768ac8841) on uk-data 1.58.1, for 2025-26 to 2031-32. No check broke; one fails on both sides (sign:vat, VAT below zero for 76 units, which main already has). It flagged 67 moves for review. Every figure matches the run at 0b344de7e, the run at 86530fe54 and the runs at 1bfb461b0 and a562b10d7 before it, so on this data neither #2927's course condition, #2929's tenure test, the merge with #2845 nor the reg. 28 gate changes any reported figure. The estimated changes against main:

Change against main 2026-27 2027-28 2031-32
Housing Benefit spending -£298.7m -£339.3m -£403.2m
Housing Benefit caseload -46.1k -50.2k -52.5k
Universal Credit spending +£435.0m +£507.4m +£618.7m
Universal Credit caseload +46.7k +50.8k +53.4k
Council Tax Reduction spending 0 -£0.8m -£0.9m
Household net income +£136.3m +£167.4m +£214.5m

The household net income totals, and the decile means in each run's own deciles, leave out Disabled Students' Allowance amounts the report suppresses.

On this data every unsaved working-age reporter claims UC at the abolition, so the UC increase is an upper bound (see "What happens to families that lose Housing Benefit").

  • Absolute poverty doesn't change in 2025-26 and falls slightly in each year from 2026-27: after housing costs, by 3.8k people in 2026-27 and 6.9k in 2031-32.
  • Relative poverty before housing costs rises by 254.2k people (+0.37pp) in 2026-27: 91.9k children, 90.0k working-age adults and 72.2k pensioners. From 2027-28 to 2031-32 the changes run -2.2k, +42.8k, -97, +60.2k and +64.1k. After housing costs, they range from -3.8k (2026-27) to +62.7k (2027-28).
  • By decile, households stay in the base run's deciles. Decile 1's mean net income rises by £2 to £10 a year and decile 2's by £8 or £9 where reported; in deciles 3 to 5 fewer than 10 households change in any year, and deciles 6 to 10 don't change. In each side's own deciles, decile 5's mean rises by £257 to £445 and decile 6's falls by £208 to £376.

Follow-ups

Notes for the reviewer

  • Benefit cap. In 2026 the annual cap applies to the part-year Housing Benefit, which slightly under-applies the weekly cap.

  • Joint awards. main caps a joint Housing Benefit and UC award once, through UC: the Housing Benefit cap doesn't apply to a UC claimant (HB reg. 75F(1)(g)), and UC counts the Housing Benefit as nil (UC reg. 80(2A)). A 2027 YAML case checks this for an accommodation family.

  • Merge with main (332d35549). The branch uses Model the 2026 income-related ESA abolition and its UC claims #2813's accommodation route and uc_housing_costs_element from main and drops its earlier copies. It also restores main's income_support and person_legacy_benefits_closed (a55b884bd): under current law the earlier gates ended income-related ESA a second way and nothing else.

  • Merge with main (98381bf49, Apply SI 2014/1230 reg 28 to the UC qualifying young person test #2845). The one conflict was the docstring of uc_is_excepted_from_education_condition, which now keeps both sides. Apply SI 2014/1230 reg 28 to the UC qualifying young person test #2845 wrote its 2026 cases on main, which has no abolition, and across the 154 cases in the nine YAML files it changed, the abolition claim flips in 11 (e5293a173):

    • 7 now set would_claim_uc_at_legacy_closure false, as this PR already does for main's Case 32 in uc_receiving_education.yaml (bd0d7643c). They are cases 31, 43, 44, 45 and 47 in uc_receiving_education.yaml, one case in uc_qualifying_young_person_existing_benefits.yaml and case 14 in council_tax_reduction_young_person.yaml. In each, the claim changed what the case tests: an "ordinary route" case passed only through the migrated-student exception, case 44 became eligible for UC through it, or a case that sets would_claim_uc false claimed UC. Since Require a reg. 12(2) course for the reg. 60(1) education protection #2927 the claim no longer gives an unfunded student the exception. The pins keep each case on the claim it tests: the one would_claim_uc makes, or no claim where a case sets would_claim_uc false.
    • The other 4 flips. 0eec18a48 sets the flag false in the two flipped cases of uc_qualifying_young_person_universal_credit_claim.yaml (an 18-year-old claimant's own Housing Benefit report; a parent's claim beside their young person's report). Both test the ordinary claim, so now only would_claim_uc makes it. The other two keep the claim: the parent's young person who reports their own Housing Benefit in uc_qualifying_young_person_existing_benefits.yaml, and the young person's 2026 Income Support report in uc_qualifying_young_person_legacy_closure.yaml. Against main with Require a reg. 12(2) course for the reg. 60(1) education protection #2927, across the 155 cases of these nine files, they are the only two that differ, and only in claims_uc_at_legacy_closure: the course condition no longer gives the parent, who isn't studying, an education exception, so no output changes.

    One case outside the 11, which already sets the flag false, changes its amount: it pays Housing Benefit only until the abolition, 6,000 × 86/365 = 1,413.70.

    1bfb461b0 adds the reg. 28 gate above, with 2027 cases and property-test draws.

  • Merges with Require a reg. 12(2) course for the reg. 60(1) education protection #2927 (aecd1a192, then 8b5df0244 and 4b1d71d64 for its review answers). Each time the one conflict was the docstring of uc_is_excepted_from_education_condition; it keeps the migration notice assumption for the abolition claim and Require a reg. 12(2) course for the reg. 60(1) education protection #2927's course condition. The abolition reaches a Northern Ireland rate rebate too: SR 2025/176 art. 7(1) appoints the day for "an award of housing benefit" with no carve-out, and SR 2016/226 reg. 6(2) names "housing benefit in the form of a rate rebate". So the model's default claim fires for case 44's student, and cases 49 and 50 of uc_receiving_education.yaml test it: without maintenance funding they get no UC, and with it reg. 61(1) keeps £4,062.96.

  • Merge with main (a768ac884, in 006bef13e). Take houseboats, caravans and mobile homes out of the Housing Benefit LHA cap #2929 made housing_benefit_eligible's tenure test read benunit_is_renting instead of LHA_eligible, so a private renter of a houseboat, caravan or mobile home, whose rent the LHA doesn't set, can reach Housing Benefit. Git combined that with this PR's routes without a conflict. The two conflicts were in text. The Housing Benefit page takes main's tenure sentence and keeps this PR's continuing-award bullet, accommodation paragraph and abolition section. housing_benefit_eligible.yaml keeps main's header and adds "before working-age awards were abolished". 4cd3f146f adds two cases to housing_benefit_working_age_abolition.yaml: a GB working-age caravan renter with a continuing award gets 5,200 × 86/365 = 1,225.21 in 2026 and no award in 2027.

  • main's 2026 Housing Benefit cases. main's YAML cases that the abolition reaches now expect it. Unsaved awards that make no claim are paid for 86/365 of 2026-27 (for example benefit_cap_specified_benefits.yaml, housing_benefit_income_related_benefit_passport.yaml, and from bd0d7643c LHA_other_families_children_and_additional_bedrooms.yaml). claims_universal_credit.yaml expects the claim at abolition, and cases that test something else pin would_claim_uc_at_legacy_closure false. The capped-once case takes main's 2027 UC (0750b7a5f). The case comments and commit messages give the arithmetic.

axiom: TheAxiomFoundation/rulespec-uk#376 queued (SI 2025/1148 arts 3A, 7; SR 2025/176 arts 3A, 7; SR 2016/226 reg 4A); TheAxiomFoundation/rulespec-uk#433 queued (the UC claim at legacy closure); TheAxiomFoundation/rulespec-uk#514 queued (SI 2014/1230 regs 28 and 60 after the abolition, companion tests 18 and 19)

Reproducer: policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml, policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml, policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml, policyengine_uk/tests/test_disable_simulated_benefits.py::test_the_housing_benefit_abolition_prompts_no_claim, policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py::test_payable_share_is_the_day_share_before_the_statutory_date, policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py::test_abolition_matches_the_pre_abolition_rule_scaled_by_the_payable_share, policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py::test_the_abolition_claim_ends_only_the_couples_legacy_awards

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits September 30, 2026 07:54
SI 2025/1148 art 7, inserted by SI 2026/409, brings WRA 2012 s.33(1)(d)
into force on 1 July 2026 for every Housing Benefit award not already
terminated. It saves claimants within SI 2014/1230 reg 6A(2)-(5)
(specified or temporary accommodation, pension age, protected mixed-age
couples), income-related ESA appointee cases and prisoners until release.
Northern Ireland: SR 2025/176 art 7, inserted by SR 2026/115, from
1 October 2026.

gov.dwp.housing_benefit.working_age_awards_payable holds 1/0 per
jurisdiction (great_britain, northern_ireland). PE-UK samples gov.*
parameters at 30 April of each fiscal year, which would have left all of
2026-27 unaffected, so the parameter is day-weighted with
fiscal_year_blend: 2026 takes 86/365 in GB and 178/365 in NI, and 0 from
2027. housing_benefit_payable_share is 1 for any benefit unit with a member
over State Pension age and the country share otherwise; the
continuing-award route needs it above 0 and the pre-cap award is scaled by
it.

Also make housing_benefit_eligible.yaml's boolean checks non-vacuous
(margin 0, would_claim_uc false), and update the docs, programs.yaml and
the take-up description.

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

A mutation check showed the mixed-population differential missed two
breakages (no proration; NI given the GB date), because random populations
rarely hold a working-age continuing award in 2026. The new property test
builds only those families, for 2025-2027 in GB and NI, and fails on both
mutations. Also drop dataset-specific take-up shares from the docs page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 2 commits September 30, 2026 08:43
Review follow-up: specified and temporary accommodation HB is not modelled,
so programs.yaml lists Housing Benefit as partial. Comment that Great
Britain's date applies to an unknown country, and use Stat-Xplore's own
"Employment and Support Allowance" label in the docs.

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

Copy link
Copy Markdown
Collaborator Author

Overlap with #1940: it replaces the pension-age new-claim test in housing_benefit_eligible with meets_pension_credit_age_conditions, which adds mixed-age couples keeping the SI 2019/37 art. 4 saving (TP Regs reg 6A(5)) and those before 15 May 2019. It leaves your continuing-award line alone, so the conflict should be textual only. It also extends test_dataset_take_up_stays_anchored_to_reported_claims: a saved mixed-age couple is eligible on the new-claim route as well as the continuing-award route.

MaxGhenis added a commit that referenced this pull request Sep 30, 2026
Para 17(1) and 9(1) add £17.10 where net earnings "equal or exceed" the
other disregards, the childcare charges and £17.10. Net earnings are
float32, so exactly £1,149.20 (£5 + £17.10 a week) was held as £1,149.19995
and failed the test. The comparison is now in pence, and new cases pin
£1,149.20 (single, 30 hours) and £2,189.20 (lone parent, 16 hours) as
granted and a penny below each as not.

The end-to-end pension-age cases are aged 72 and set the applicable amount
(£256 x 52) as an input. SI 2006/214 Sch 3 para 1(1) gives £256 only to a
claimant who reached pensionable age before 1 April 2021, and £238 to one
who reached it later; #1913 models that split. The working-age case asserts
housing_benefit_entitlement, which #1910's 2026 abolition scaling does not
change.

The disabled-worker case is labelled as a model limitation: the disability
premium also brings in Sch 4 para 3's £20 in place of £5, which is not
modelled. A new case pins the is_adult proxy counting an 18-year-old young
person's earnings and hours (the law excludes them) until #1896 replaces
it. The net earnings documentation names the provisions that set the tax
deducted (213 regs 36(3) and 39(1); 214 regs 36(2) and 40(1)), calls the
proportional attribution a lower bound for employees, and says what the
proxy counts. The changelog fragment is a bullet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vahid-ahmadi

Copy link
Copy Markdown
Collaborator

Reviewed: request changes (sequencing only; the law is right).

The dates and savings are correct. GB is 1 July 2026 under SI 2025/1148 art 7, inserted by SI 2026/409, and NI is 1 October 2026 under SR 2025/176 art 7, inserted by SR 2026/115. Specified or temporary accommodation, pension age, protected mixed-age couples, ESA(IR) appointees and prisoners are saved. The 86/365 and 178/365 day counts are right.

  1. Blocking (merge order). In the dataset, the 28k working-age units whose HB ends have would_claim_uc = False and get nothing. That produces a £0.19bn saving and about 13k more people in AHC poverty, which the PR itself says may have the wrong sign (DWP's Move to UC claim rates are 75–97%). Fix: merge together with, or after, policyengine-uk-data#492, and ideally Abolish income-related ESA from 1 July 2026 (NI 1 October 2026) and stop paying it alongside UC #1914 (ESA(IR) abolition), so live results never show this.
  2. Should fix housing_benefit_payable_share.py:44-45 and housing_benefit_eligible.py:56-57. Nothing can mark specified or temporary accommodation (reg 6A(2)), so in the household calculator such tenants get £0 from July 2026. The PR cites a DWP figure of £5.6bn for this HB in GB (I didn't verify it). Fix: add a bool input in_specified_or_temporary_accommodation (default False) that sets the share to 1 and opens the new-claim route. Model Housing Benefit for specified (supported) and temporary accommodation at any age #1911 can then do the data.
  3. Nit. A reform dated inside a year (e.g. "2026-07-01") is silently ignored. Say so in the parameter description.

Verified: I read SI 2025/1148 art 7 (revised), SI 2026/409, SR 2026/115 (sealed 17 June 2026), TP Regs reg 6A and DWP circular A6/2026 (in force 1 July 2026). In a fresh environment the abolition and eligibility YAML passed 16/16 and the two property files passed 38/38. CI: all 7 checks pass, including the docs build.

@juaristi22

Copy link
Copy Markdown
Collaborator

Codex review — changes required

Reviewed commit bd9272a88ee1198eacd2a2da9cb5abf30e4be01c. PARTIAL; 1 confirmed blocking finding(s). Independent code/test and policy/source reviews were consolidated for the changed behavior and affected dependencies.

code-1 — [P1] Preserve working-age awards covered by the abolition exceptions

housing_benefit_payable_share.py:30–45 assigns the abolition share to every family without a pension-age member. The code comments acknowledge that specified/temporary accommodation and other saved cases have no input, so the new multiplier nonetheless sets all of those working-age awards to zero from2027. The independently checked article7/regulation6A exceptions preserve qualifying continuing awards; the model needs to distinguish them before zeroing this entire population.

Executed2027 case: age40, reported HB £5,200, would_claim_uc false, council rent £5,200 and assessable HB income held at zero. The model calculates HB entitlement £5,200, payable share0, HB £0 and UC £0. Protection status cannot be supplied at this head, so an otherwise identical protected continuing award necessarily gets the same exclusion. This is a confirmed missing condition with an executed downstream path; it is not a claim that the diagnostic encoded a protection variable that does not exist.

Add a supported protection input/path, or coordinate the data/migration work so protected cases are retained before applying the blanket ending rule. Cover protected working-age awards through final payment after2026. Confidence: high on the universal-zero code path and statutory omission; population incidence is unverified.

The source review independently confirms the continuing-award protections in GB article 7, NI article 7 and transitional regulation 6A. The overlapping code and policy findings are counted once. Appointee/prisoner savings also need an explicit treatment.

The GB/NI commencement dates and annual shares are corroborated. The migration concern is separate from the confirmed missing protection: an absent UC award alone does not establish UC entitlement or take-up. The PR's population cost/poverty estimates remain author-reported.

Outstanding evidence/decision:

Validation: 54 focused tests passed. An additional executed diagnostic traced the new payment-share path from £5,200 HB entitlement to £0 paid HB in 2027. Four official source originals were inspected and their cached bytes verified. Protection itself cannot be supplied as an input at this head; the finding combines the universal code path with the statutory exception, rather than claiming a fully represented protected household was simulated.

Focused tests used an existing cached Python 3.13 environment (Core 3.32.9, NumPy 2.1.3, pandas 2.3.1, microdf-python 1.2.1, Hypothesis 6.168.2, pytest 8.4.2) with this PR’s isolated source snapshot. No dependencies were installed; this was not a freshly synced lock environment or a full-suite/population run. This is a review comment, not a formal GitHub review vote.

Live check before posting (2026-10-02T10:39:08.735058+00:00): same commit, CLEAN; all reported CI checks pass.

@vahid-ahmadi

Copy link
Copy Markdown
Collaborator

Review pass (Claude Code, on Vahid's behalf) at bd9272a8 — round 2

Short version: no new commits since my round 1 (head still bd9272a8), so my three items stand as they were. The branch still merges cleanly onto today's main (30 commits ahead of its base) and its tests pass on the merged tree. The Codex review's P1 is my item 2; I agree with it and won't repeat it.

Item from round 1 Status
1. Blocking (merge order): the 28k working-age units whose HB ends have would_claim_uc = False, so the abolition shows a £0.19bn saving and ~13k more people in AHC poverty that the PR itself says may have the wrong sign Open. policyengine-uk-data#492 and #1914 are both still open issues, with no PR yet. Holding this until #492 lands (or merging them together) is still my ask.
2. Should-fix: no input for specified or temporary accommodation (reg 6A(2)), so those tenants get £0 from July 2026 in the household calculator Open, and independently confirmed by the Codex review's P1. A single bool input (default False) that sets the share to 1 and opens the new-claim route is enough here; #1911 can supply the data. The ESA(IR) appointee (art 7(4)(b)) and prisoner (art 7(2)) savings could ride on the same input or be documented as not modelled, as now.
3. Nit: a reform key dated inside a year ("2026-07-01") is silently ignored Open. One sentence in the parameter description would do.

Checked again at this head:

  • git merge-tree against main 1c9bb5c2 reports no conflicts (only programs.yaml auto-merges). On the merged tree, the Housing Benefit YAML directory passes 74/74, and test_housing_benefit_working_age_abolition_properties.py plus test_housing_benefit_pension_age_properties.py pass 38/38.
  • Day counts: 6 April–30 June is 86 days and 6 April–30 September is 178, so the 0.2356 and 0.4877 shares are right.
  • CI at this head: all 7 checks pass.
  • Date the mixed-age couple Pension Credit exclusion and model the SI 2019/37 saving #1940 (mixed-age couples) is still open; the overlap with housing_benefit_eligible remains textual only.

@MaxGhenis

Copy link
Copy Markdown
Collaborator Author

@vahid-ahmadi — response to your 1 October and 2 October reviews:

  1. Take-up / merge order: left open for Max, as requested. This follow-up does not change would_claim_uc, migration take-up or the data pipeline. The sensitivity section is preserved exactly. Move working-age legacy-benefit reporters onto UC at Move to UC claim rates (stranded after HB, tax credit, IS and JSA closure) policyengine-uk-data#492 and Abolish income-related ESA from 1 July 2026 (NI 1 October 2026) and stop paying it alongside UC #1914 remain separate work; this PR has not been merged or marked ready.

  2. Protected awards: the assigned worktree now contains in_specified_or_temporary_accommodation (BenUnit, YEAR, bool, default False). It keeps the payable share at 1 and opens the HB new-claim route. The route also works when UC is claimed: reg 6A(2) and reg 8(3) permit this, while the corresponding UC rent element is excluded under Schedule 1 paragraph 3(h)/(i); the NI counterparts were also read and implemented. New 2027 GB/NI YAML covers protected continuing awards and new claims paid in full, unprotected zero controls, the capital gate and HB with non-housing UC. Properties check protection in every year 2015–2040 and omitted-input/explicit-False equivalence.

    The other savings are now listed precisely in variable documentation and the PR body: the qualifying final UC assessment-period case on reaching Pension Credit age; pension-age and protected mixed-age approximations; ESA(IR) entitlement immediately before abolition plus an appointee then or a determination in the prior six months that one was likely needed; and the restricted prisoner delay based on UC exclusion immediately before abolition, until that restriction ends. The historical cases remain unmodelled rather than being assigned a generic status that would not establish the statutory conditions. Accommodation-specific eligible-rent and benefit-cap rules remain incomplete under Model Housing Benefit for specified (supported) and temporary accommodation at any age #1911.

    Further cap-coordination limitation for Max / Model Housing Benefit for specified (supported) and temporary accommodation at any age #1911: benefit_cap_reduction includes both HB and UC pre-cap awards, and final housing_benefit and universal_credit each subtract that same reduction. With the new status permitting joint awards, a binding cap can therefore subtract the reduction from both. Capped joint awards are not fully supported; no cap methodology was chosen here. The synthetic joint-award final tests are below the cap, and the default False path leaves existing outputs unchanged.

  3. Mid-year reforms: the parameter description now explains annual reads, the usual 30 April sampling, and this flag's day-weighted fiscal-year conversion. The checkpoint merge changed the relevant implementation: Simulation.apply_parameter_changes now applies dictionary reforms before conversion. A 2026-07-01 key setting the flag to 1 is a one-day override and yields 87/365 in GB; a bare 2026 key covers the full fiscal year. A date written into already-converted parameters after the annual read date is ignored for that year's formula. The PR body corrects the earlier broader statement, and a real Simulation regression covers the dictionary examples.

Follow-up validation: the full Housing Benefit YAML directory plus the affected UC housing-cost and HB/UC mutual-exclusion YAML files passed: 101 passed in 211.90s. Notebook JSON and git diff --check passed. The two property files and policyengine_uk/tests/code_health were attempted, but the cutoff lost their final pytest session; its log contains only startup output, so no completed Python-suite result is claimed. Process inspection is blocked (ps/pgrep cannot list processes), so another potentially concurrent test was not started. The checkpoint also lacks the post-#1896 generic-child/adult code-health check because the latest-main merge is blocked. No full-dataset or microsimulation suite was run.

Publication status: these fixes are prepared locally, but the live PR branch does not yet contain them. The filesystem sandbox rejects writes to the worktree's Git metadata outside the assigned writable directory, preventing fetch/merge, staging, commit and push. The existing checkpoint merge 165448576a955105972817cddb73bf82be54dc88 is preserved. This is not a claim that item 2 is already closed on the remote branch.

Final lint: uv run --frozen ruff format . left 1,098 files unchanged; uv run --frozen ruff check . passed. git diff --check passed.

@MaxGhenis

Copy link
Copy Markdown
Collaborator Author

@juaristi22 — response to the Codex review:

  • code-1 / P1: implemented in the assigned worktree with an explicit in_specified_or_temporary_accommodation input, default False. Protected working-age families retain share 1 after abolition, including GB/NI 2027 final-award cases paid in full with otherwise identical unprotected zero controls. Protected new claims are supported. Accommodation HB can coexist with UC under GB reg 8(3) / NI reg 6(3); the same input excludes UC rent support under the statutory housing-cost exclusions. The ordinary HB/UC exclusion remains for unprotected families.
  • Other saved classes: variable documentation and the PR body now list the qualifying final UC assessment-period case, pension-age and protected mixed-age approximations, exact ESA(IR)/appointee-or-likely-needed conditions and the restricted prisoner delay. Award history, decision and timing conditions are not replaced with invented current-status tests. Accommodation-specific eligible-rent and benefit-cap rules remain incomplete.
  • Unresolved joint-award cap coordination — Max / Model Housing Benefit for specified (supported) and temporary accommodation at any age #1911: benefit_cap_reduction includes both HB and UC pre-cap awards, while final housing_benefit and universal_credit each subtract that same reduction. With the new status permitting joint awards, a binding cap can subtract the reduction from both benefits. Capped joint awards are not fully supported and no cap methodology was selected here. The synthetic joint-award final tests are below the cap; default False preserves existing outputs.
  • Dataset/migration evidence: this follow-up leaves take-up work to Max under Move working-age legacy-benefit reporters onto UC at Move to UC claim rates (stranded after HB, tax credit, IS and JSA closure) policyengine-uk-data#492 and Abolish income-related ESA from 1 July 2026 (NI 1 October 2026) and stop paying it alongside UC #1914. No dataset run was added. Existing datasets do not supply the new input; False reduces each changed formula to its previous expression, including the UC housing element. A generated-population regression compares omitted input against explicit False. The sensitivity section is unchanged.

Follow-up validation: the full Housing Benefit YAML directory plus the affected UC housing-cost and HB/UC mutual-exclusion YAML files passed: 101 passed in 211.90s. Notebook JSON and git diff --check passed. The two property files and policyengine_uk/tests/code_health were attempted, but the cutoff lost their final pytest session; its log contains only startup output, so no completed Python-suite result is claimed. Process inspection is blocked (ps/pgrep cannot list processes), so another potentially concurrent test was not started. The checkpoint also lacks the post-#1896 generic-child/adult code-health check because the latest-main merge is blocked. No full-dataset or microsimulation suite was run.

Publication status: the changes remain local. Sandbox restrictions prevent writes to the external Git metadata needed by fetch/merge, staging, commit and push, so the live PR branch has not received this fix and code-1 cannot yet be closed there. The existing checkpoint merge is preserved; the PR has not been merged or marked ready.

Final lint: uv run --frozen ruff format . left 1,098 files unchanged; uv run --frozen ruff check . passed. git diff --check passed.

MaxGhenis and others added 2 commits October 2, 2026 15:52
…bolition

Adds the benefit-unit input in_specified_or_temporary_accommodation
(default False; SI 2025/1148 art 7 and TP Regs reg 6A(2), NI equivalents):
such awards stay payable after 1 July 2026 (NI 1 October 2026), new claims
remain open, and the UC housing costs element excludes that rent. Other
saved classes (pension-age switchers, ESA(IR) appointees, restricted
prisoners) are documented as not modelled. The parameter description now
says how reforms dated inside a year are read. With the input absent every
existing result is unchanged.

Addresses Vahid's items 2-3 and the Codex P1 on bd9272a. Item 1 (data
migration onto UC) is held for Max (d837).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pension-age route now reads the claimant and partner
(is_claimant_or_partner, from #1896) in place of the age-18 approximation.
A reform key dated inside a year leaves that model year's payable share
unchanged (86/365 for Great Britain in 2026): the test, the parameter
description and the notebook now say so; the earlier text claimed it added
one day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 13 commits November 16, 2026 21:16
…the reg 60A comment

The legacy-closure property's example now has a third family: a
working-age single claimant reporting Housing Benefit only, with neither
would_claim_uc nor the closure claim flag. Invariant 2 expects it to make
no claim in 2026 and 2027, so a claim that ignores
would_claim_uc_at_legacy_closure on the Housing Benefit abolition now
fails this test as well as claims_universal_credit.yaml.

The reg 60A comment in is_uc_eligible said a family reporting Pension
Credit makes no closure claim. The legacy closure still moves no such
family, but from 2026-27 the Housing Benefit abolition can prompt a
claim from a mixed-age couple without the SI 2019/37 saving that reports
Pension Credit (SI 2025/1148 art. 7(4)(a) does not save its award). On
that claim reg 60A applies on reported Working Tax Credit, as on any
closure claim, and reg_60a does not read the Pension Credit report.
Comments only; no formula changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Article 7(4)(b) requires the Housing Benefit claimant personally to hold the
saved ESA award. A couple's shared ESA assessment does not establish that
identity. Use a supplied claimant-specific status, following the existing
main-phase ESA input, instead of introducing a general HB claimant model.
Without that status a couple is unsaved; a sole claimant's own positive
saved report suffices. Reports and flags keep calculated ESA out of the
UC claim dependency path. Document this conservative default and align
eligibility, notebook and release-note descriptions.

Add same-person, different-person, missing-status, missing-report, unsaved
and single-claimant cases in GB and NI for 2026 and 2027. Retain every
existing numerical expectation, explicitly identifying the HB claimant in
the partner example. Narrowly permit the supplied status in cycle traces
and assert that it has no formula.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Migration can end legacy awards without a Universal Credit claim. Each
abolition's part-year and post-2026 outcome applies only to an unsaved
award it reaches, rather than every nonclaimant's ESA and Housing Benefit.
Describe those paths separately, retain continuing saved awards, and
state that accommodation Housing Benefit survives a Universal Credit
claim whereas an ESA-saved continuing award ends. Correct the YAML
explanatory comment to reflect claimant-specific entitlement as well.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
The take-up description incorrectly limited working-age families to old
awards and described abolition without its savings. Explicitly keep new
specified and temporary accommodation claims and restrict the dated
abolition statement to unsaved awards.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
The release note and notebook implied every continuing award gets the
pre-abolition fraction. That fraction applies to an unsaved continuing
award whose family does not claim Universal Credit; a claim ends the
continuing award for the whole model year. State the condition explicitly
in both places, editing only the notebook cell source string.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
The accommodation input, new-claim route and Universal Credit housing
cost exclusion already existed on main. Describe this PR's abolition
saving instead of presenting those features as newly added. Remove the
leading list marker from both fragments because Towncrier supplies it.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
The eligibility text enumerates pension age, specified or temporary
accommodation, and continuing awards. Say three routes to match that
list. Change only the JSON cell source string and retain valid notebook
JSON. Remove the serial-test scratch directory before this final step.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Art. 7(4)(b) saves an award only where the Housing Benefit claimant
holds the saved income-related ESA award. This commit answers both
round-2 P1 findings in one expression.

The sole-claimant shortcut saved any family with exactly one
is_claimant_or_partner. An unmarked adult in the benefit unit could
report the Housing Benefit, and the marked claimant's saved ESA then
kept it, even with the supplied status false. The false default also
discarded couples whose Housing Benefit and saved ESA reports are on
the same member.

housing_benefit_payable_share now uses the Housing Benefit reporter as
the claimant, as has_mixed_age_couple_pension_credit_saving does,
counting reporters over every member as housing_benefit_eligible does.
The saving applies when exactly one member reports Housing Benefit and
has the saved report; when no member reports it and a sole claimant
has the saved report; or when housing_benefit_claimant_is_saved_esa_claimant
confirms the identity and a claimant or partner has it. Two reporters,
a reporter without the saved report and an unconfirmed couple stay
unsaved. The formula still reads only reports, flags and roles.

New YAML cases cover GB and NI 2026-27 and GB 2027-28: the outside
reporter, same reporter with no or false status, different reporters
with no or true status, two reporters, and a sole claimant without a
report. No existing expected value changed; the stale YAML comments,
the input's documentation and the changelog fragment now describe the
reporter rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The housing_benefit_eligible documentation and the Housing Benefit
notebook still said a couple must supply
housing_benefit_claimant_is_saved_esa_claimant. After the previous
commit, the payable share also saves a couple whose only Housing
Benefit reporter has the saved ESA report, so both now describe the
reporter rule and the supplied confirmation. Only the docstring and the
notebook cell's source string change; the notebook stays valid JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A saved ESA report counts only on a claimant or partner, so an adult
outside is_claimant_or_partner keeps no Housing Benefit award with saved
ESA, even as the only reporter and with the supplied status true. The
flag's documentation told users to supply true where the reports do not
show the identity, without saying the status cannot reach such an adult.
It now says so and points to supplying is_claimant_or_partner, as for a
couple 20 or more years apart entered without roles. The share's
documentation and a code comment say the same and why the mask stays:
the Housing Benefit amount still treats that adult as a non-dependant.

The reporter rule (77d9423) left the mask and the no-report couple rule
untested. New GB 2026 units pin both: an outside adult with saved ESA is
unsaved as the only reporter (with and without the status), with the
status while the claimant reports, and with no report; the same adult
supplied as partner is saved; a couple with no report and no status is
unsaved; and an age-gap couple with inferred roles is unsaved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The in-session verifiers of the reporter rule found the documentation
stating "the model uses the Housing Benefit reporter as the Housing
Benefit claimant" as always true, when it holds only where exactly one
member reports Housing Benefit. The supplied status also overrides the
reports rather than filling gaps, and the eligibility docstring and the
changelog omitted that the saved award counts only on a claimant or
partner. Reword the share's documentation and comment, the status's
documentation, the eligibility docstring, the changelog fragment and the
notebook cell to say so. No formula or expected value changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The round-3 review found that a couple in which both members report
Housing Benefit and both hold a saved income-related ESA award lost the
art. 7(4)(b) saving without the supplied status, because the reporter
rule required exactly one reporter. Whichever of them claims Housing
Benefit holds the saved award, so art. 7(4)(b) applies either way.

Path (a) now saves the award when at least one member reports Housing
Benefit and every reporter is a claimant or partner with the saved
report. A reporter without the saved award, including an adult outside
the claimant/partner mask, still blocks the saving, so the earlier
counterexamples keep their expectations. Add the two-reporter couple in
GB 2026, NI 2026 and GB 2027; the previous formula fails all three.
Update the share's documentation and comment, the status's
documentation, the eligibility docstring, the changelog fragment, the
notebook cell and the YAML comments. No existing expected value changes.

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

Round 4 asked for two cases on the every-reporter rule: a couple whose two
Housing Benefit reporters both hold the saved income-related ESA keeps the
award with housing_benefit_claimant_is_saved_esa_claimant false, and loses
it when an adult outside the claimant/partner mask also reports Housing
Benefit. Test-only; the abolition YAML passes 43 cases.

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

Copy link
Copy Markdown
Collaborator Author

@vahid-ahmadi, thanks for the review. Here's how a562b10d7 addresses your three points.

  1. Main's property tests now cover the abolition year (6a76cc043).
    • P5 in test_mixed_age_couple_properties.py: main now pins would_claim_uc_at_legacy_closure false for every drawn family, so both runs pay the 2026-27 continuing award for the payable share, and P5 says so. A new P9 checks that from 2026 a mixed-age couple's share is below 1 without the SI 2019/37 art. 4 saving and 1 with it. A deterministic test takes your 67/26 couple in 2026: without the saving and without a claim it gets 86/365 of its award; claiming at the abolition, it gets no Housing Benefit and the UC of any claim for the whole year; with the saving it keeps the whole award and makes no claim.
    • test_benefit_cap_lha_scheme_split_properties.py: the legacy families, including the LCWRA and hb_floor examples, pin the flag false, so they stay on Housing Benefit for the part of 2026-27 before 1 July and still reach the cases they test.
    • Both files pass in CI at a562b10d7.
  2. Main merged in (332d35549, main at d3db7ac07).
    • Model the 2026 income-related ESA abolition and its UC claims #2813's accommodation route and uc_housing_costs_element take main's version; this branch's copies are gone.
    • housing_benefit_eligible applies the payable share to the continuing-award route, and main's "doesn't apply that date" text now says how the share applies the date.
    • claims_uc_at_legacy_closure checks the Housing Benefit trigger alongside main's legacy-closure and esa_income_abolition_reached triggers.
    • The income_support.py and person_legacy_benefits_closed.py edits go back to main (a55b884bd). Income Support and income-based JSA stop paying from 1 April 2026, so those gates only ended income-related ESA a second way. The abolition claim now ends the same awards as main's claim at the ESA abolition: the continuing Housing Benefit award and, through esa_income_report_closed, the claimant's and partner's income-related ESA.
  3. ESA appointee saving. housing_benefit_payable_share is now 1 where the Housing Benefit claimant holds income-related ESA with esa_income_appointee_saving, and the case is off the "not modelled" list. Art. 7(4)(b) requires the Housing Benefit claimant to hold the saved award, so the model takes that claimant to be a member who reports Housing Benefit. It keeps the award when at least one member reports Housing Benefit and every reporter holds the saved ESA, and when nobody reports Housing Benefit and the sole claimant holds it. On every path it counts a saved ESA report only for a member marked is_claimant_or_partner, so an outside adult's own saved ESA never keeps the family's Housing Benefit. A new input, housing_benefit_claimant_is_saved_esa_claimant, confirms the identity where the reports can't, for example Housing Benefit reported by one partner and the saved ESA by the other. Both inputs default to false, so the saving doesn't change dataset runs. Housing Benefit ESA saving: a dependent child's Housing Benefit report blocks the saved claimant #2923 tracks one gap: without that confirmation, a dependent child's Housing Benefit report blocks the saving.

PolicyEngine/policyengine-uk-data#534 is still open, so the hold stands.

MaxGhenis and others added 3 commits November 18, 2026 12:01
…tus)

#2845 changed uc_is_excepted_from_education_condition's reg. 60(1) limb to read
is_qualifying_young_person_on_uc_migration_day. Git found one conflict, in its
documentation: this keeps main's migration-day sentence and #1910's sentences on
the abolition claim and the reg. 44 migration notice, and lists both reg. 44 and
reg. 49 among the references.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2845 wrote its 2026 cases on main, which has no abolition of
working-age Housing Benefit. On #1910 a family whose award the
abolition reaches claims Universal Credit by default
(would_claim_uc_at_legacy_closure), and the model treats that claim as
a qualifying claim (reg. 60 exempts it from the education condition).
Comparing all 154 cases in #2845's nine YAML files on main 98381bf
and the merged tree, the closure claim flips in 11. In 7 of them it
changes what the case tests, so these now set the flag false, as
#1910's own Case 32 does:

- uc_receiving_education.yaml cases 31, 43, 45 and 47 ("the ordinary
  route") passed only through the migrated-student exception, and
  case 44 failed (is_uc_eligible 1, expected 0).
- uc_qualifying_young_person_existing_benefits.yaml, "An 18-year-old
  claimant ... who reports Housing Benefit is not a qualifying young
  person", and council_tax_reduction_young_person.yaml case 14 set
  would_claim_uc false, yet the closure claim made the family claim
  Universal Credit (4,062.96); the first failed.

One case keeps its flag and its amount changes:
uc_qualifying_young_person_universal_credit_claim.yaml, "An 18-year-old
claimant's own Housing Benefit report excludes them while they don't
claim Universal Credit", now pays Housing Benefit until the abolition
on 1 July 2026: 6,000 x 86/365 = 1,413.70.

The other 4 flips change only uc_is_excepted_from_education_condition
for a person no output depends on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2845 gates a Housing Benefit report's reg. 28 exclusion on
housing_benefit_open, which knew no abolition date. Under #1910 an
unsaved working-age award ends on 1 July 2026 (1 October 2026 in
Northern Ireland) whether or not the family claims, yet from 2027 an
18-year-old who reported Housing Benefit and made no claim stayed
excluded while the model paid them nothing (probe: 2027 and 2028, GB
and NI, housing_benefit 0, is_qualifying_young_person false).

The formula now also requires housing_benefit_payable_share > 0, or
disable_simulated_benefits, as the income-related ESA gate already
requires esa_income_payable_share. The share reads parameters, the
country, reports, is_claimant_or_partner, input flags and the Pension
Credit age conditions, and no Universal Credit variable, so it adds no
cycle. The gate applies on the first day of a claim (at_claim_start)
too, where is_qualifying_young_person_for_uc_education reads it.

Both property oracles now read the ESA and Housing Benefit payable
shares and draw 2027, and the receiving-education invariants run a
fixed 2027 example in England and Northern Ireland (its 15 seeded
draws missed the gap). New 2027 cases cover a claimant in GB and in
Northern Ireland, a parent's young person, and a saved award in
specified or temporary accommodation, which still excludes.

Scotland's working-age Council Tax Reduction reads this definition, so
from 2027 the same report no longer takes a young person out of the
family there (council_tax_reduction_young_person.yaml case 17), and the
changelog fragment says so. test_disable_simulated_benefits.py's
unreformed expectation for a young person's Housing Benefit report
becomes year >= 2027, as income-related ESA's already was; its reformed
half covers the disable_simulated_benefits branch (dropping it fails two
2027 cases). Two comments that said the model had no closure date for
Housing Benefit now name the payable shares.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1910's abolition claim treats the family's claim as a qualifying claim,
so without #2927 an 18-year-old on an unfunded non-advanced course whose
only existing benefit the abolition ends took the reg. 60(1) exception.
The one conflict was the docstring of
uc_is_excepted_from_education_condition: it keeps #1910's migration
notice assumption for the abolition claim and #2927's course condition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 5 commits November 19, 2026 09:04
…ure, claim pins, reform holds the abolition claim

- uc_receiving_education.yaml: the pin comments say the abolition claim is held off so each case tests the ordinary claim alone; cases 49 and 50 make that claim for a Northern Ireland rate-rebate-only family, unfunded (no reg. 61(1) protection, UC 0) and funded (protected, UC 4,062.96).
- The saved-award fixture rents from the council at 6,000, so the calculated award passes its tenure screen; it asserts housing_benefit_eligible and housing_benefit.
- The two universal-credit-claim cases hold would_claim_uc_at_legacy_closure false, so only would_claim_uc makes their claim.
- disable_simulated_benefits holds claims_uc_at_legacy_closure in NOT_MOVED with the other closure inputs, so the reform moves no family; a new test covers a Housing Benefit-only tenant.
- Docstrings and the changelog describe 2026-27 (a positive payable share still excludes), 2027-28 (an unsaved report no longer excludes) and the reform's ten-year horizon, and list Housing Benefit abolition among the closure routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one conflict was again the docstring of uc_is_excepted_from_education_condition: it keeps the reg. 48 migration notice assumption for the abolition claim and #2927's account of when an off-course young person receives education. The Northern Ireland sentence also maps reg. 45 to reg. 44, since the notice text now cites reg. 44.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…izons and case 50's annual amount

- disable_simulated_benefits: the comment says the reform holds the claim the Housing Benefit abolition prompts but not the abolition, so housing_benefit_pre_benefit_cap covers only 2026-27 before the abolition date and housing_benefit_eligible ends from 2027-28 while the reported Housing Benefit is paid; NOT_MOVED's comment says why the ESA reach is still held.
- test_disable_simulated_benefits: asserts the reformed esa_income_abolition_reached is false, and its comment credits the claim's own hold.
- The changelog gives the reform's horizon: the dataset year and the nine after it.
- The receiving-education invariant 8 says the suite runs with disable_simulated_benefits off and where the switch is checked.
- Case 50 says the annual model pays the whole of 2026-27 and counts no student income, so the case asserts the model's amount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one conflict was the Northern Ireland sentence of uc_is_excepted_from_education_condition's docstring: it keeps #2927's regs. 6 and 12(1) mapping and this branch's reg. 45 for reg. 44, and the references gain SR 2016/226 reg. 45.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
disable_simulated_benefits' comment and docstring said only the closure is held; NOT_MOVED also holds the claims the closure and the abolitions prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 3 commits November 20, 2026 20:39
… the reform comment

- Both status docstrings, the formula comment and the changelog say that
  in 2026-27 an unsaved Housing Benefit report that is otherwise open still
  excludes, and that from 2027-28 it no longer does with
  gov.contrib.policyengine.disable_simulated_benefits off.
- Case 49's claimant gets no Universal Credit, so the rate rebate ends the
  day before the date they would first have been entitled had they met the
  basic and financial conditions (SR 2016/226 reg. 6(2)(b)).
- The reform comment states once what the reform pays, and its lines fit.

Comments, documentation strings and the changelog only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
#2929 made housing_benefit_eligible's tenure test read benunit_is_renting
instead of LHA_eligible. Git merged the formula without a conflict and found two
in text. The Housing Benefit notebook takes main's tenure sentence (rent, or a
member in social housing) and keeps this branch's continuing-award bullet
(housing_benefit_payable_share), accommodation paragraph and abolition section
in place of main's "does not yet model the 1 July 2026 end date" line.
housing_benefit_eligible.yaml takes main's header on the eight route cases and
adds this branch's "before working-age awards were abolished".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2929's tenure test lets a private renter of a caravan, whose rent the LHA
doesn't set, reach Housing Benefit, and this branch ends working-age awards
from 1 July 2026. No case combined the two. A GB working-age caravan renter
with a continuing award now gets 86/365 of a £5,200 entitlement in 2026 and no
award in 2027. The 2026 case fails if the tenure test reads LHA_eligible again.

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

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants