Conversation
…ze criteria Universal Credit: a qualifying young person the renter is responsible for has a bedroom (UC Regs 2013 Sch 4 para 10(1)(b)), and any other member aged 16 or over is a non-dependant with one (para 9(2), 10(1)(c)), except a qualifying young person no one is responsible for (para 9(2)(g)). Housing Benefit: every member aged 16 or over other than the claimant or partner is a person who is not a child (HB Regs 2006 and HB (SPC) Regs 2006 reg 13D(3)(b); reg 2(1)). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
YAML cases for a qualifying young person aged 17 and 19, an 18-year-old non-dependant, a looked-after qualifying young person (no UC bedroom), a couple with a young person and two younger children (category E), a partner aged 19 (no extra bedroom) and a pensioner couple's grandchild under HB (SPC). Two LHA_claimant_composition cases asserted the old one-bedroom count for an apprentice non-dependant and an 18-year-old qualifying young person; both are now two bedrooms (Sch 4 para 10(1)(c) and (b)). Hypothesis properties: bedrooms never fall when a person aged 16-19 joins any family; the exact change when they do; and agreement with an independent count of the size criteria, children's rooms found by brute force. Fixes #2008 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o lha-bedroom-young-people
This was referenced Oct 1, 2026
Open
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2008
Stacked on #2006 (base
benefit-unit-rent-liability), which is stacked on #1896. Retarget tomainonce both merge.Problem
The LHA size criteria gave no bedroom to a member of the benefit unit aged 16 or over who is not the claimant or partner. The commonest case is a young person at school or college living with a parent.
LHA_allowed_bedrooms(Universal Credit) andhousing_benefit_LHA_allowed_bedrooms(Housing Benefit) counted three things:So a lone parent with a 17-year-old at college was assessed for one bedroom (category B) instead of two (C).
mainsubtracts every benefit-unit member aged 16 or over, which has the same effect.The law
Universal Credit. UC Regs 2013 Sch 4 para 10(1): "A renter is entitled to one bedroom for each of the following categories of persons in their extended benefit unit":
Para 9(2) makes anyone else aged 16 or over who normally lives with the renter a non-dependant. The exception relevant here is (g): "a child or qualifying young person for whom no-one in the renter's extended benefit unit is responsible". An example is a young person looked after by a local authority (reg 4(6)). A child is a person under 16 (WRA 2012 s.40); a qualifying young person is defined in reg 5.
Housing Benefit. HB Regs 2006 and HB (SPC) Regs 2006 reg 13D(3) (SI 2006/213, SI 2006/214): "one bedroom for each of the following categories of occupier ... (b) a person who is not a child". A child is "a person under the age of 16" (reg 2(1) of each).
Change
LHA_allowed_bedrooms)is_child_or_qualifying_young_person_for_universal_credit, para 10(1)(b)); any other member as a non-dependant (para 10(1)(c)), except a qualifying young person no one is responsible for (para 9(2)(g))housing_benefit_LHA_allowed_bedrooms)The counts of non-dependants and occupiers from other families are unchanged, as is
bedrooms_for_children.Why the UC rule also covers non-dependants. The issue's UC example is the qualifying young person. A benefit-unit member aged 16 or over who is not a qualifying young person is, in law, a non-dependant with their own bedroom.
lha_renter_has_non_dependantalready treats them as one. On the enhanced FRS that group is 19k people in 20 survey households, against 1.95m qualifying young people.Invariants
Hypothesis properties are in
test_lha_bedroom_young_people_properties.py: 25 examples each, derandomized, over populations of up to 4 households with sharers, boarders, lodgers and non-dependant families.bedrooms_for_children's greedy pairing against the optimum on every generated family.Tests
New
LHA_young_person_bedroom.yaml, 7 cases at 2026:The £ expectations use a rent of £200 a week. That is between the published Maidstone one- and two-bedroom rates (VOA LHA April 2024, held for 2025-26: B £172.60, C £208.27), so they hold whatever the model's rate table says. On the pre-change formulas, 5 of the 7 cases fail. The 2 that pass are the regression guards for the looked-after and partner cases.
LHA_claimant_composition.yaml: two cases asserted "existing bedroom formula = 1: B", for a 17-year-old apprentice non-dependant and an 18-year-old qualifying young person. They are now C, citing para 10(1)(c) and (b).policyengine-core test policyengine_uk/tests/policy -c policyengine_uk: 1,507 passed.pytest policyengine_uk/tests --ignore=policyengine_uk/tests/microsimulationon 7c6f5f3: 2,044 passed, 19 skipped, 1 failed. The one failure,test_deterministic_variables.py::TestHeadOrdering::test_oldest_person_is_head_and_gets_rent, also failed on the base. Give sharers, boarders and lodgers their own rent, tenure and LHA category #2006 fixed it in b065a48, now merged here, andtest_deterministic_variables.pypasses 25/25 on the merged head. The 3 new Hypothesis properties pass at 25 examples each. A full re-run on the merged head (49866c2): 2,045 passed, 19 skipped, 0 failed.ruff formatandruff checkon the changed files: clean.Microsimulation tests (
make test-microsimulation) were not run. The impact below is a direct base-vs-branch run instead.Impact (real microsimulation)
Enhanced FRS 2024-25 as released (policyengine-uk-data 1.57.4,
enhanced_frs_2024_25.h5, sha25603fe15e4…), year 2026. Base is #2006's head b065a48; the branch is 49866c2. The first runs, on 190482e and a9e1b4f, gave identical output. Same dataset in both runs.Every figure below comes from at least 10 distinct survey households. A survey household is counted by its rent and members' ages, which every enhanced-FRS record shares with its FRS 2024-25 source household. Collisions only merge households, so the counts are lower bounds. Cells under 10 are suppressed.
Who is affected
Money (£ a year, 2026)
The roughly £35m between the element's rise within awards and UC paid is withheld by the benefit cap and the UC deductions rules. Each applies in fewer than 10 survey households, so they are not shown separately.
In fewer than 10 survey households the LHA cap falls when the bedroom count rises. In 5 of 200 BRMAs, the model's rate table, which is its 2020 list of rents uprated by the private rent index, prices a larger category below a smaller one. That is a separate, existing issue.
Known gaps (not changed here)
bedrooms_for_children. The foster carer's additional bedroom is not modelled (UC Sch 4 para 12; HB reg 13D(3A)(b)).Documentation
The variables'
documentationfields describe the new rule. The Housing Benefit docs notebook does not cover the size criteria, so no docs build is needed.axiom: uk/regulations/uksi/2013/376/schedule/4/paragraph/10 (UC Sch 4 para 10(1)(b), (c)) encoded-correct, companion cases in TheAxiomFoundation/rulespec-uk#408 | HB Regs 2006 / HB (SPC) Regs 2006 reg 13D(3)(b): TheAxiomFoundation/rulespec-uk#406 queued (addendum: TheAxiomFoundation/rulespec-uk#406 (comment))
🤖 Generated with Claude Code