Repository navigation
Conversation
No maximum rent (LHA) is determined where a Housing Benefit claim relates to rent for "a houseboat, caravan or mobile home which he occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). LHA_eligible now reads accommodation_type and is false for MOBILE. housing_benefit_eligible tested social | LHA_eligible as a stand-in for renting, which would have cut these renters off Housing Benefit, so it now tests benunit_is_renting; their payments are still rent (reg 12(1)). Universal Credit has no such exception (SI 2013/376 Sch 4 Part 4) and is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion onto it main moved 4,503 commits since e36824a, so this merge carries the port: - LHA_eligible keeps main's module and is false where accommodation_type is MOBILE (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). - housing_benefit_eligible keeps main's routes and tests social | renting where it tested social | LHA_eligible. The two agree for every other home. - lha_mobile_homes.yaml pins its amounts to 2025, before working-age awards end. housing_benefit_eligible.yaml's continuing-award cases set benunit_is_renting and gain a caravan case. - test_lha_mobile_homes_properties.py checks the definition and the metamorphic invariants on three populations in each run, and a fixed example shows the LHA freeze moves the same renter in a flat. - The changelog fragment takes the issue number. Fixes #2928. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in Notes
Moves flagged for reviewNone. Spending by benefit and service
Caseloads
Household net income by decileNo household's net income changes in any year. No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkThe check raised each of 92 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.
Provenance
Dataset: Receipts by tax head: head levels
Spending by benefit and service: head levels
Caseloads: head levels
Government balance, each component counted once: head levels
Model totals: head levels
Household income totals: head levels
Population: head levels
Poverty rates: head levels
People in poverty: head levels
Inequality: head levels
Mean household net income in each side's own deciles: head levels
Standard reform costings (change in gov_balance): head levels
Standard reforms: change in each reform's target: head levels
|
…es, the rent officer route - test_lha_mobile_homes_properties.py now crosses five families, five tenures, five regions, two rents and two incomes (500 families, each in a caravan, another known home and an unknown home) in one simulation. Its expectations come from the inputs: the flag holds for private renters outside a caravan, and a family is eligible when it rents and has reached pension age or kept an award. The file runs in 8 seconds. - lha_mobile_homes.yaml gains a lodger in an owner-occupied caravan, both families in a privately rented caravan, Northern Ireland, a charge for meals (the caravan route deducts it and a maximum rent (LHA) doesn't), and issue 2928's household with its flat twin. Its amount cases use a claimant aged 70. - housing_benefit_eligible.yaml's social housing case supplies no renting flag, so it pins the social limb; an owner-occupier comment no longer names the LHA. - test_housing_benefit_pension_age_properties.py reads renting from the tenure it draws. - Comments, the docs paragraph and the changelog say who acts: a local authority determines no maximum rent (LHA), refers most of these claims to a rent officer and sets a maximum rent from that determination, which can fall to the single room rent for a single claimant under 35. An excluded tenancy keeps the rent less ineligible charges. No formula changes. Four mutants fail these tests: main's flag (10 YAML cases and both grid tests), eligibility reading the flag (4 and the grid), eligibility without the social limb (1 YAML case), and eligibility ignoring tenure (3 and the grid). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…fficer route, more cases - LHA_eligible's documentation says what the flag does in the model: it selects the eligible rent (LHA_cap, or the rent less the prescribed deduction for meals), and housing_benefit_eligible reads the tenure. A supplied LHA_eligible therefore changes the eligible rent without changing eligibility. Three cases pin that contract. - The comments, the docs paragraph and the changelog describe the route outside the LHA with its limits: a council normally refers the rent to a rent officer and sets a maximum rent from the determination (in Northern Ireland the Housing Executive decides), Housing Benefit can meet the payments subject to the other conditions of an award, and Universal Credit keeps a private renter's rent payments subject to the LHA cap. - The docs' eligibility summary lists the specified or temporary accommodation route, which the formula already has. - New cases: a private renter aged 25 with a continuing award in a caravan, a couple with one member in social housing (for the flag and for eligibility), a pension-age lodger's award in a caravan and in a flat, and a flat twin for the meals case. The amount cases say which figures they supply. No formula changes. Seven mutants fail these tests: main's flag, eligibility reading the flag, eligibility without the social limb, eligibility ignoring tenure, the exclusion only from age 35, and all-members social housing in each formula. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…two branches, the tenure gate - The docs paragraph and the LHA_eligible comment say what a council does for a rent allowance outside the LHA: in Great Britain it normally uses a rent officer's determination (regs 14 and 13), in Northern Ireland the Housing Executive decides (NI regs 15 and 14), and the eligible rent starts from the resulting maximum rent, subject to adjustments (reg 12C; NI reg 13B). Where the residual rule applies, reg 12B (NI reg 13A) starts from the payments the claimant is liable for. - LHA_eligible's documentation gives both branches: when true, housing_benefit_entitlement uses LHA_cap; otherwise it uses max(0, benunit_rent - housing_benefit_meals_deduction). The default reads the household's recorded accommodation type, and an unknown type keeps the flag. The model has no rent officer's rent amount. - The docs' eligibility summary gives the tenure gate as the formula has it: the benunit rents, or a member is in social housing. Two passages that said the model had no specified or temporary accommodation route now agree with the summary. - Both couple cases supply social housing statuses of [false, true], so a formula that read only the first member would fail them. Case names and comments say what each case asserts. - test_housing_benefit_pension_age_properties.py no longer computes a social housing value it doesn't read. No formula changes. Nine mutants fail these tests; the two new ones read only the first member's social housing status in each formula. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…d's Housing Executive An unknown accommodation type leaves LHA_eligible's default to the renting and social housing checks; the documentation string and the docs said it "keeps the LHA". The docs sentence on the residual rule (reg 12B; NI reg 13A) names the Housing Executive beside the council. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Fixes #2928.
What and why
A local authority determines no maximum rent (LHA) where a Housing Benefit claim or award "relates to periodical payments of kind falling within regulation 12(1) (rent) which a person is liable to make in relation to a houseboat, caravan or mobile home which he occupies as his home" (SI 2006/213 reg. 13C(5)(d)(i); SI 2006/214 reg. 13C(5)(d)(i) for pension-age claims; SR 2006/405 and SR 2006/406 reg. 14C(5)(d)(i) in Northern Ireland).
On
main,LHA_eligibleholds for every private renter, sohousing_benefit_entitlementcaps these families' eligible rent at the LHA. For example, a single person aged 70 in North East England in 2025-26 with no income rents a caravan privately for £7,800 a year.mainplaces the household in Tyneside, the region's rental market area with the most private renters, and pays Housing Benefit of £5,864.04, Tyneside's one-bedroom LHA rate.This PR changes two formulas:
LHA_eligiblereturns false by default where the household's recordedaccommodation_typeisMOBILE("Caravan/Mobile home or houseboat").housing_benefit_entitlementthen usesmax(0, benunit_rent - housing_benefit_meals_deduction)in place ofLHA_cap, and the example claimant gets £7,800.housing_benefit_eligibletestssocial | benunit_is_rentingin place ofsocial | LHA_eligible. With the new flag, the old test would have ended Housing Benefit for these families. Where the model computes the flag, no family's eligibility changes: for any home other than a houseboat, caravan or mobile home,LHA_eligibleequalsbenunit_is_renting & ~social, so the two tests agree.A supplied
LHA_eligiblenow selects the eligible-rent calculation without changing eligibility. Onmain, supplyingfalsefor a private renter ended the family's Housing Benefit. No reform, parameter or dataset supplies the flag.Universal Credit doesn't change. Its private rented sector rules have no such exception (SI 2013/376 Sch. 4 Part 4).
The model has no rent officer's rent amount, so outside the LHA it takes the rent less the prescribed deduction for meals. Where a council would set a lower maximum rent from a rent officer's determination, the model overstates Housing Benefit. The Housing Benefit documentation page states that limit. Its eligibility summary now also lists the specified or temporary accommodation route, which the formula already has.
Aggregate impact. On the certified dataset, no total and no household's net income changes in any year from 2025-26 to 2031-32 (Aggregate impact run at
8aa2ef474).Issue #2930 carries three points outside this change: an owner's site payments and mooring charges, tenure standing in for rent liability, and one documentation sentence on the cap rent.
Test plan
For policy changes: YAML tests whose expected values come from an external source (legislation, official guidance, official calculator); otherwise mark not applicable. The expected values follow from the regulations cited above and from Tyneside's published 2025-26 LHA rates.
make format:ruff formatandruff checkpass on the changed files, and CI's lint job passes.Changelog fragment
changelog.d/2928.fixed.mdlha_mobile_homes.yaml(new, 22 cases): the flag by tenure and home, in Great Britain and Northern Ireland; a lodger in an owner-occupied caravan and in a flat; a couple with one member in social housing; the eligible rent with and without the cap, under the taper and with a charge for meals; the example household end to end (£7,800 in a caravan, £5,864.04 in a flat); a supplied flag; and two Universal Credit cases, where the LHA still caps a private caravan renter's housing costs element and a housing association caravan tenant's covers the rent.housing_benefit_eligible.yaml: the first eight cases test the tenure gate. They supplybenunit_is_rentingwhere they suppliedLHA_eligible, and add the social housing limb on its own, a couple with one member in social housing, a caravan renter, and a supplied flag in each direction.test_lha_mobile_homes_properties.py(new): a grid of 500 families (five family types, five tenures, five regions, two rents, two incomes), each in a caravan, one other known home and a home of unknown type, in one simulation. The expected flag and eligibility come from the inputs. The test also checks that the LHA only lowers the entitlement of these meals-free families, that a caravan family's entitlement never exceeds its rent, that the home never changes the Universal Credit housing costs element, and that other homes change nothing. A fixed example shows that freezing LHA rates lowers a flat renter's entitlement and leaves the same renter's in a caravan at the rent.test_housing_benefit_pension_age_properties.py: its renting reference reads the tenure it draws.Local runs at
8aa2ef474: the two YAML files above, 41 passed. Ataa2a22b3f, which has the same formulas and tests: the 11 YAML files that nameLHA_eligibleoraccommodation_type, 179 passed; the grid file, 2 passed; the pension-age property file, 4 passed. The 11 other Python test files that readLHA_eligiblepassed atc1db21503(172 tests); no later commit changes formula logic.Nine mutants of the two formulas each fail these tests:
main's flag (11 YAML cases, the reproducer among them at 9,467.64 against 10,400, and both grid tests); eligibility reading the flag; eligibility without the social housing limb; eligibility ignoring tenure; the exclusion only from age 35; and, in each formula, social housing read for all members or for the first member only.CI at
8aa2ef474: all 22 checks pass (Code changes, attempt 2). In attempt 1, Python shard 2 of 8 reached its 90-minute limit at 99% with no failure.Independent review: GPT-6.2 Sol approved in a scoped third round at
aa2a22b3f, with every earlier finding closed;8aa2ef474applies its two remaining wording points.How it lands with #1910
#1910 ends working-age Housing Benefit from 1 July 2026 and changes
housing_benefit_eligible.pytoo. The two formula files merge cleanly;housing-benefit.ipynbandhousing_benefit_eligible.yamlconflict in text. Whichever PR lands second keeps #1910'shousing_benefit_payable_share > 0gate and this PR's tenure test, keeps one copy of the accommodation-route text, and adds a combined case: a working-age caravan renter with no saved award who doesn't claim Universal Credit gets the prorated award outside the LHA in 2026-27 and none in 2027-28.Reproducer
Reproducer:
policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml::Caravan renter's eligible rent is the rent, not the LHAaxiom: TheAxiomFoundation/rulespec-uk#546 queued (SI 2006/213 and SI 2006/214 reg 13C; SR 2006/405 and SR 2006/406 reg 14C)
🤖 Generated with Claude Code