Repository navigation
Conversation
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>
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>
|
Overlap with #1940: it replaces the pension-age new-claim test in |
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>
|
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.
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. |
Codex review — changes requiredReviewed commit code-1 — [P1] Preserve working-age awards covered by the abolition exceptions
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. |
|
Review pass (Claude Code, on Vahid's behalf) at Short version: no new commits since my round 1 (head still
Checked again at this head:
|
|
@vahid-ahmadi — response to your 1 October and 2 October reviews:
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 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 Final lint: |
|
@juaristi22 — response to the Codex review:
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 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: |
…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>
…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>
|
@vahid-ahmadi, thanks for the review. Here's how
PolicyEngine/policyengine-uk-data#534 is still open, so the hold stands. |
…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>
…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>
… 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>
Status (25 November, head
4cd3f146f). The branch includesmainata768ac884, 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 drawswould_claim_uc_at_legacy_closureat 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 ifwould_claim_uc_at_legacy_closureis 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
Change
gov.dwp.housing_benefit.working_age_awards_payable, with childrengreat_britainandnorthern_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;esa_income_reportedwithmain'sesa_income_appointee_savingonly for a member markedis_claimant_or_partner. It takes the Housing Benefit claimant to be a member who reports Housing Benefit, ashas_mixed_age_couple_pension_credit_savingtakes 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, defaultFalse) can confirm the identity when a claimant or partner has the saved report, whoever reports Housing Benefit.Trueoverrides the reports;Falseleaves the identity to them and cannot remove one they establish. An adult outsideis_claimant_or_partnernever 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 andwould_claim_uc_at_legacy_closureis true. The claim then ends the same awards asmain'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_closedis 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, asmaindoes 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 whiledisable_simulated_benefitsis on, asmainalready does for income-related ESA throughesa_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.yamlcase 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_MOVEDalso holdsclaims_uc_at_legacy_closure. The abolition claim readshousing_benefit_payable_sharedirectly, 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 loseshousing_benefit_eligible, while the reform still pays the reported Housing Benefit.uc_is_excepted_from_education_conditionstates 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_closureand the take-up parameter describe the abolition; the notebook gains an "Abolition of working-age awards" section. Housing Benefit becomespartialinprograms.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 withfiscal_year_blend: true, it takes a day-weighted average over 6 April to 5 April instead. PE 2026 therefore reads: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
in_specified_or_temporary_accommodation, read by #2813's route).Truekeeps share 1 in every year. Accommodation-specific eligible-rent and benefit-cap rules are not modelled (#1911).meets_pension_credit_age_conditions, which reads the claimant and partner.has_mixed_age_couple_pension_credit_saving). An unsaved mixed-age couple loses its award like a working-age family.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).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_claimantorwould_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
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.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.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.pychecks these. Items 2 to 7 use generated families without the ESA appointee saving and withwould_claim_uc_at_legacy_closurefalse; item 8 tests the claim:False.housing_benefit_working_age_abolition.yamltests 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 pinwould_claim_uc_at_legacy_closurefalse where they test something else (pension-age Housing Benefit claims, benefit-cap LHA split), andtest_mixed_age_couple_properties.pyadds the abolition's split between saved and unsaved mixed-age couples.Validation
CI at
4cd3f146fpassed 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 withmaina768ac884, every test file that this PR ormain's changes since51e3c1121touch passes: 13 YAML files and folders, the Housing Benefit folder's 769 cases among them, and 15 Python test files. At4cd3f146f,housing_benefit_working_age_abolition.yamlgives 45 passed. With the tenure test readingLHA_eligibleagain, its new 2026 caravan case fails.Locally at
0eec18a48:disable_simulated_benefitstests, andtest_non_dependant_cycle_contracts.py.1bfb461b0). With the formula before it swapped in,uc_qualifying_young_person_existing_benefits.yamlfails 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_28andtest_education_condition_invariants. Dropping thedisable_simulated_benefitsbranch from the gate fails two 2027 cases intest_disable_simulated_benefits.py.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 failstest_reg_60_protection_follows_the_closure_dates,test_education_condition_invariantsandtest_examples_reach_the_cases.0eec18a48). Takingclaims_uc_at_legacy_closureout of the inputsdisable_simulated_benefitsholds failstest_the_housing_benefit_abolition_prompts_no_claim(1 failed, 3 passed).At
026fd91fd, whose commits after0eec18a48change 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_casesnow fails on the eligibility of YAML case 48's claimant, whom #2927 adds to its examples.4b1d71d64and86530fe54then change only docstrings, comments and references, anduc_receiving_education.yamlstill gives 50 passed. After0b344de7e, 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. At86530fe54, 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. At1bfb461b0, 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. Ata562b10d7, before the merge withmain98381bf49, CI passed every job, after reruns of Python shards the 90-minute limit cancelled with no test failing. At168a9481d, CI passed every job.Independent review: GPT-6.2 Sol approved in round 11 at
86530fe54, with every earlier finding closed;0b344de7eapplies its three remaining wording points. In the merge withmaina768ac884, Git combinedhousing_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, which4cd3f146fadds.Dataset impact
The Aggregate impact job measured this head merged into
main(22b803022b) againstmain(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, whichmainalready has). It flagged 67 moves for review. Every figure matches the run at0b344de7e, the run at86530fe54and the runs at1bfb461b0anda562b10d7before 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 againstmain:mainThe 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").
Follow-ups
would_claim_uc_at_legacy_closureat Move to UC claim rates.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.
maincaps 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 anduc_housing_costs_elementfrommainand drops its earlier copies. It also restoresmain'sincome_supportandperson_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 ofuc_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 onmain, which has no abolition, and across the 154 cases in the nine YAML files it changed, the abolition claim flips in 11 (e5293a173):would_claim_uc_at_legacy_closurefalse, as this PR already does formain's Case 32 inuc_receiving_education.yaml(bd0d7643c). They are cases 31, 43, 44, 45 and 47 inuc_receiving_education.yaml, one case inuc_qualifying_young_person_existing_benefits.yamland case 14 incouncil_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 setswould_claim_ucfalse 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 onewould_claim_ucmakes, or no claim where a case setswould_claim_ucfalse.0eec18a48sets the flag false in the two flipped cases ofuc_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 onlywould_claim_ucmakes it. The other two keep the claim: the parent's young person who reports their own Housing Benefit inuc_qualifying_young_person_existing_benefits.yaml, and the young person's 2026 Income Support report inuc_qualifying_young_person_legacy_closure.yaml. Againstmainwith 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 inclaims_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.
1bfb461b0adds 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, then8b5df0244and4b1d71d64for its review answers). Each time the one conflict was the docstring ofuc_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 ofuc_receiving_education.yamltest it: without maintenance funding they get no UC, and with it reg. 61(1) keeps £4,062.96.Merge with
main(a768ac884, in006bef13e). Take houseboats, caravans and mobile homes out of the Housing Benefit LHA cap #2929 madehousing_benefit_eligible's tenure test readbenunit_is_rentinginstead ofLHA_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 takesmain's tenure sentence and keeps this PR's continuing-award bullet, accommodation paragraph and abolition section.housing_benefit_eligible.yamlkeepsmain's header and adds "before working-age awards were abolished".4cd3f146fadds two cases tohousing_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 examplebenefit_cap_specified_benefits.yaml,housing_benefit_income_related_benefit_passport.yaml, and frombd0d7643cLHA_other_families_children_and_additional_bedrooms.yaml).claims_universal_credit.yamlexpects the claim at abolition, and cases that test something else pinwould_claim_uc_at_legacy_closurefalse. The capped-once case takesmain'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