Conversation
…bedrooms in the LHA size criteria Universal Credit (UC Regs 2013 Sch 4 paras 9-12): the household head's non-dependants' children are in the extended benefit unit and share rooms with the renter's children; foster children are in no one's extended benefit unit; foster parents and adopters with a child placed (para 12(4)-(5)) and renters whose household includes someone with non-resident overnight care (para 12(A1), (3)) get one additional bedroom for each condition (12(9)). Foster parents are excepted from the shared accommodation rate (29(9A)), and armed forces independence payment counts in the para 29(5) exception. Housing Benefit (HB Regs 2006 and HB (SPC) Regs 2006 reg 13D): the children of non-dependants, boarders and lodgers are occupiers (13D(12)); a child placed with the claimant as a foster child or for adoption is not (reg 21(3)); a qualifying parent or carer and a person who requires overnight care give one additional bedroom each (13D(3A)-(3B)) and are not young individuals. New inputs: is_placed_for_adoption, is_approved_foster_parent_without_placement, has_non_resident_overnight_carer. Fixes #2011 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HB reg 21(3) names only children placed with the claimant or partner, but DWP treats foster children as not occupying the dwelling (LHA Guidance Manual para 2.033; HB circular A21/2013 para 22), as Universal Credit does (UC Sch 4 para 9(2)(g)). The household head's Housing Benefit size criteria and overnight-care bedroom now leave out a child placed with a non-dependant, boarder or lodger as a foster child or for adoption. Adds a YAML case and tightens the foster-child Hypothesis property to an exact effect on every family. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HB Regs 2006 reg 13D(3)(a) puts any occupier couple in "a couple" (one bedroom; LHA Guidance Manual para 2.012), so a non-dependant's, boarder's or lodger's couple adds one bedroom to the household head's HB size criteria, not two. Universal Credit is unchanged: each non-dependant who is not a child has a bedroom (UC Sch 4 para 10(1)(c); ADM F3112 note 1). Reported by the disabled-rooms session (chip task_cc724597). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Childcare Payments (Eligibility) Regs 2015 reg 4(2)(d): no one is responsible for a child placed for adoption by an adoption agency in the home of a person proposing to adopt them. The new is_placed_for_adoption input is documented for each scheme it touches: Universal Credit and Pension Credit treat the adopter as responsible (UC reg 4A(1)(c); SPC Sch IIA para 4(3)(c)); HB, the legacy schemes and English pensioner CTR do not count the child in the household; CTC's rule 4 case B depends on local authority payments and is not modelled. Changelog covers the HB occupier couple rule too. Found by the first review attempt's probes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65a4e0d to
1474c90
Compare
…nt test predicates - HB occupier couple: count the half rooms only when both members are counted, so a benefit unit flagged as a couple without two adults no longer produces a fractional bedroom (and an enum error downstream). - UC: read "child" as under 18 for foster children throughout (is_lha_foster_child; parameter gov.dwp.LHA.foster_child_age_limit): a looked-after 16- or 17-year-old placed with the renter has no room of their own, and their overnight care counts under para 12(A1)(c). - Overnight care beyond the renter or HB claimant and partner applies from 1 April 2017 (SI 2017/213; parameter overnight_care_beyond_claimant). - youngest_child_age_for_legacy_benefits leaves out a child placed with the family (IS reg 16(4)). - Property tests derive the added person's status from the inputs (UC reg 5, Child Benefit QYP, looked after under 18) instead of the model, bias the generator towards looked-after young people, and give the added person overnight care in the reference property. - YAML: 13 new cases pinning the reviewer's surviving mutants and probes, a case with an inconsistent couple flag, and a 2016 date-gate case; the fostering-couple case now uses ages that detect counting the foster child; corrected citations. - Documentation: Scottish working-age CTR adoption gap, Scottish devolved disability benefits, HB 13D(3A)(a)(iii) reading, reg 21(3)(a) and s.22C, and the overnight-carer and adoption inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1474c90 to
ef6c77f
Compare
…tering - is_looked_after_child: the looked-after flag applies only under 18 (Children Act 1989 ss.22(1), 105(1)). It replaces the raw flag in the UC, CTC and Pension Credit child tests and in the legacy placement test, so a flagged 18- or 19-year-old qualifying young person keeps their UC room and gives no HB carer room. The looked-after age limit moves to household.demographic.looked_after_child_age_limit. - HB occupier couples need is_couple as well as two counted claimant or partner members, so relation_type SINGLE is respected again. - Income Support Sch 1B para 2: a single claimant or lone parent with whom a child is placed by a local authority is a prescribed category. - YAML: a looked-after 17-year-old claimant (pins the claimant-guard mutant), a looked-after 18-year-old with a single renter of 30, a non-dependant pair entered as single, two IS para 2 cases. - Property predicates apply the under-18 limit and accept any non-tertiary education; P5 renamed to a reference count. The child-definition property reference applies the same under-18 limit. - Documentation: HB reg 19(2)(c) eligible children; looked-after flag under 18 only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ef6c77f to
2389a88
Compare
…n-dep-deductions)
UC Sch 4 para 28 now uses the UC para 9 non-dependant and UC responsibility (regs 4-5); HB reg 13D(2)(a)(i) uses the HB reg 3 non-dependant with the Child Benefit young person (reg 19), including non-dependants of joint occupiers (reg 74(5)). The blanket rule treating every 16-year-old as a dependant is removed: a 16-year-old outside each scheme's young person test is a non-dependant, and one inside it is a dependant who also fails the specified-renter / single-claimant test, so neither scheme's shared rate depended on the rule, except that HB gave the shared rate to a young single claimant living with a 16-year-old who was neither. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Covers a 16-year-old in and out of education, a 19-year-old past the UC terminal date (a UC non-dependant, an HB young person), looked-after young people in and out of education, a foster child, and a joint tenant's adult son (HB counts him for both tenants, UC for the head only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Invariants: a 16+ member who is not looked after (UC) or placed (HB) always defeats the shared rate, however classified; any UC or HB non-dependant deduction implies a non-dependant under that scheme; and the UC and HB person-level definitions agree below 19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mutation testing showed three surviving mutants (the 16-year-old rule back in HB, HB's other-family term dropped, UC using the legacy definition): the generator rarely produced the deciding cases and HB deductions were zero at nil income. Ages now concentrate around 16-20, members and other families have earnings, and explicit examples pin a 16-year-old school leaver, a 19-year-old in education and a shared house with earning non-dependants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follows #2016's reading of "foster child" (UC Sch 4 para 9(3), with the reg 2 foster parent definition) as a looked-after person under 18 placed with the renter (is_lha_foster_child), so a looked-after 16- or 17-year-old who is not a qualifying young person is excluded by para 9(2)(c) rather than counted as a non-dependant. The WRA 2012 s.40 reading (a child is under 16) would count them; the code records both. HB is unchanged: such a person is not a young person (reg 19), so reg 21(3) does not apply and they are a non-dependant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… deduction code Follows #2017 at 2d54628 (review r2 F3/F4): a non-dependant normally resides with each joint occupier whichever family they belong to (HB reg 3(1), (4); reg 74(5)), including a joint tenant's own adult son and a lodger's adult son (reg 3(2)(e)(i) excludes only the person liable to pay the claimant). A boarder or lodger keeps only their own family's. Both flags now count the same people the deduction formulas charge, so a deduction always implies a non-dependant, including for a family with no claimant or partner (review r1 finding 3). "Joint renter" in the UC docstring becomes "sharer of the rent" (in UC Sch 4 it means a joint claimant; review r1 finding 6). New YAML cases: a lodger's adult son (HB non-dependant of the householder and the lodger; UC counts him in the lodger's claim only, para 9(2)(f)), and a looked-after 16-year-old school leaver with a young single HB claimant (C, not A; #2016 review r2 N9). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2389a88 to
c98930c
Compare
|
Coordination note from #2016: #2016's head is now e5c36dc. Since 9311e4e it adds |
|
Coordination note from #2062 (issue #2059), which makes every programme read one household head. This PR's Whichever of the two PRs lands second needs these readers switched:
#2062 adds a test, |
|
Coordination with #2089 (each scheme its own benefit cap and LHA shared-accommodation rules), stacked on #2084. For the LHA, #2089 adopts #2006's names and helpers, so this stack and #2089 meet on the same files:
#2089 keeps When this stack and #2089 meet, take this stack's versions of the HB LHA files: the (a)(ii) route, the non-dependant tests and the overnight-care and foster exceptions. Then:
#2006's |
Summary
One variable,
lha_renter_has_non_dependant, decided the non-dependant condition of the LHA shared accommodation rate for both Universal Credit and Housing Benefit. It blended the two schemes' definitions, and it treated every 16-year-old as a dependant all year. This PR gives each scheme its own test and drops the 16-year-old rule.universal_credit_renter_has_non_dependantis_benefit_unit_non_dependant_for_universal_credit(16+, not claimant/partner, not a UC qualifying young person)housing_benefit_claimant_has_non_dependantis_benefit_unit_non_dependant_for_legacy_benefits(not claimant/partner, not a Child Benefit child or QYP)Consumers:
is_lha_shared_accommodation_rate_specified_renter(UC) uses the UC test. That test excludes the renter's foster child (is_lha_foster_child, para 9(2)(c)), following Count other families' children and add the foster and overnight-care bedrooms in the LHA size criteria #2016's reading of "foster child" as a looked-after person under 18 placed with the renter (para 9(3) with the reg 2 foster parent definition). The WRA 2012 s.40 reading (a child is under 16) would instead count a looked-after 16- or 17-year-old who is not a qualifying young person as a non-dependant. The code records both readings. It also uses UC responsibility only for para 28(3) (is_responsible_for_child_or_qualifying_young_person_for_universal_credit), not the UC-or-HB blend, since HB has had its own category since Give sharers, boarders and lodgers their own rent, tenure and LHA category #2006.housing_benefit_LHA_categoryuses the HB test.Other families' non-dependants:
uc_non_dep_deductionsdoes.housing_benefit_non_dep_deductionsas of 155766b. A boarder or lodger has only their own family's (reg 3(2)(e)).lha_renter_has_non_dependantis deleted. It was introduced in #1896 and has never been on main.The 16-year-old rule
The blend excluded
(age >= 16) & (age < 17)from non-dependants. No provision makes every 16-year-old a dependant for the whole year:The annual model cannot place these dates. It does not need to for the shared rate:
Either way there is no shared rate. Each test now uses the model's own young person definition. The one case where the rule mattered was wrong:
is_single_person) uses the Child Benefit young person, which has no 16-year-old rule.The same rule remains in
is_responsible_for_child_or_young_person_for_uc_or_housing_benefit, now used only by the benefit cap. There the classification does change the rate, so it is left to a separate task.Invariants
These hold for every input. All four are Hypothesis tests in
test_lha_shared_rate_non_dependant_properties.py:Mutation testing. Five mutants were tried:
In round 1, M1, M3 and M4 survived: the generator rarely produced the deciding cases, and HB deductions are £0 at nil income. The properties now concentrate ages around 16-20 and give members and other families earnings. Explicit examples pin a 16-year-old school leaver, a 19-year-old in education and a shared house with earning non-dependants. In round 2, all five mutants are killed and the unmutated code passes.
Impact
These are real Microsimulation runs on the released enhanced FRS 2024-25 (sha256 03fe15e40a4c). Base is
94380e076(#2017 at 155766b plus #2016 at 9311e4e); branch isef6c77fbe. Figures are aggregates only, and any cell with fewer than 10 survey households is suppressed.The fix is a law cleanup with no measurable fiscal effect on the current data. The few 16-year-olds outside the young person test now count as non-dependants, and none was in a benefit unit where that moves a category.
Tests
LHA_shared_accommodation_non_dependants.yaml, 7 cases with each scheme's flag, responsibility and category:lha_renter_has_non_dependantexpectations are renamed to the two new outputs. UC and HB agree in every existing case.Stack and coordination
in-unit-non-dep-deductions(Charge non-dependant deductions for non-dependants within the claimant's benefit unit #2017, head 155766b).lha-nondep-children-foster-rooms, head 9311e4e) is merged in as94380e076, so the diff includes Count other families' children and add the foster and overnight-care bedrooms in the LHA size criteria #2016 until it lands.is_child_or_young_person_placed_with_familyrequires a Child Benefit child or QYP, and both new definitions already exclude those. The Count other families' children and add the foster and overnight-care bedrooms in the LHA size criteria #2016 session agreed.hb-joint-tenant-shared-non-dependant) also defineshousing_benefit_claimant_has_non_dependantand owns which joint occupiers another family's non-dependant resides with, through an input. Whichever PR lands second composes the two: this PR's in-unit definitions, plus Count a non-dependant shared by joint tenants in each tenant's Housing Benefit size criteria #2029'snon_dependants_residing_within place of this PR's other-family term, with the UC variable nameduniversal_credit_renter_has_non_dependant.lha-bedroom-young-people.Related: #2014.
axiom:
renter_responsible_for_child_or_qualifying_young_personandnon_dependant_in_relation_to_renter).🤖 Generated with Claude Code