Repository navigation
Apply the WPA disregard in the Housing Benefit cap - #2957
juaristi22 wants to merge 2 commits into
Conversation
vahid-ahmadi
left a comment
There was a problem hiding this comment.
Thanks, María. This is correct and well scoped. I found nothing blocking, and I have one wording nit.
Checked at 78ac09f
- The law. Reg 75C(4) applies to every welfare benefit other than JSA and ESA, and uses the amount Part 6 takes into account as income. Of the benefits in this cap list, WPA is the only one Part 6 counts in part, through the £15 under Sch 5 para 16(b). Child Benefit and Child Tax Credit are disregarded entirely, and the rest count in full. So applying the disregard to WPA alone makes the HB route complete.
- The formula. It subtracts
gross_wpa − housing_benefit_widowed_parents_allowance_incomeonly whereuniversal_credit_pre_benefit_capis zero. A UC family is outside the HB cap (reg 75F(1)(g)), and UC keeps the gross allowance (regs 66(1)(b)(vi) and 80(4)), asuc_benefit_cap_welfare_benefits' own list does. No new dependency: the total already read UC before the cap. - The example. £25,354.60 − £24,574.60 = £780 = £15 × 52, and HB rises by the same £780.
- Para 34's £20 joint limit. It stays unmodelled.
housing_benefit_widowed_parents_allowance_incomealready documents it, and it can't bind while war pensions are wholly disregarded. - Tests. The benefit cap folder gives 142 passed locally, with the seven new cases. CI's test lanes and aggregate impact were still running when I looked.
Nit
- Supplied totals for an HB-only family. The documentation now says what a supplied
benefit_cap_welfare_benefitsholds "for Universal Credit" (the gross allowance). It doesn't say what it should hold for an HB-only family. The supplied value is used as given, so it should already net off the disregard. One clause, e.g. "for a family without Universal Credit, the allowance after the Housing Benefit disregard", would save a dataset builder from double-counting.
Review drafted with AI assistance and checked against the code at 78ac09f25.
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
|
|
Addressed the supplied-total wording: for a family without a Universal Credit award before the cap, a supplied total must already count Widowed Parent's Allowance after the Housing Benefit income disregard. The model uses that total as given. This changes one documentation sentence. No SDK or model tests were rerun; the earlier 6,878 YAML passes remain historical evidence, and the broader Python run remains incomplete after its 540-second bound. |
Fixes #2812
Housing Benefit’s cap total counted Widowed Parent’s Allowance in full, even though regulation 75C(4) uses the amount counted as income under Part 6. Apply the existing £15 weekly disregard to the HB route. In the reported annual 2025 example, the cap basket falls from £25,354.60 to £24,574.60 and Housing Benefit rises from £14,665.40 to £15,445.40.
Keep the existing gross WPA amount on the positive UC-before-cap route and in UC’s separate basket. Supplied combined totals remain authoritative. For a family without a Universal Credit award before the cap, a supplied total must already count WPA after the Housing Benefit income disregard; the model uses it as given. The UC supplied-total subtraction is unchanged. Regression cases cover the reported household, disregard boundaries, claimant/partner ownership, UC routing, supplied totals and Maternity Allowance.
Sources: HB regulation 75C(4), regulation 40(2), Schedule 5 paragraph 16, qualified by paragraph 34, and UC regulation 80.
Validation for the policy change at
78ac09f25: full policy YAML: 6,878 passed, including all seven new regression cases (zero failures/errors/skips). The broader targeted Python property batch reached its 540-second bound without a finalized result and remains INCOMPLETE; passing progress markers are not a completed pass count. Full make format passed. Independent policy/source and code/test review completed with zero confirmed findings and zero material gaps; no new SDK run was needed for that review.Independent verification confirms the wording fix and unchanged executable code. No new SDK or model tests were run for this sentence.
Reproducer: policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_widowed_parents_allowance.yaml
axiom: TheAxiomFoundation/rulespec-uk#425 queued
The existing parity queue depends on #485 for the WPA disregard; its signed encoder access and separately approved billed run remain blocked. The companion expectations come from the same external sources as the YAML cases.
Scope: the GB WPA disregard in the issue title. Annual checks retain the model’s existing cap convention; councils’ native weekly rounding, taxable-benefit tax allocation, other Schedule 5 interactions and Northern Ireland coverage retain their existing limitations. Tests of supplied WPA awards check counting and ownership, rather than establishing underlying WPA eligibility. Full Python, private-data and population-impact suites were not run.