Give the UC LCWRA and carer elements, the work allowance and the benefit cap exceptions on the claimants' circumstances only - #1989
Draft
MaxGhenis wants to merge 7 commits into
Conversation
…nts only The LCWRA element is for 'the fact that a claimant has limited capability for work and work-related activity' (UC Regs 2013 reg. 27(1)), the carer element is included 'where a claimant has regular and substantial caring responsibilities' (reg. 29(1)), and the work allowance turns on whether 'a single claimant' or 'joint claimants' have limited capability (reg. 22(1)(b)(i)). All three read every member of the benefit unit, so a disabled child gave the claimant the LCWRA element on top of the disabled child addition, and a qualifying young person who was a carer gave the claimant the carer element. The benefit cap exception for limited capability now tests that the LCWRA element is in the award (reg. 83(1)(a)) rather than any member's limited capability. A child's disability living allowance, a qualifying young person's personal independence payment and their entitlement to Carer's Allowance still exempt the award (reg. 83(1)(f), (g), (i)). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ability UC Regs 2013 reg. 27(4)(a): 'In the case of joint claimants, where each of them has limited capability for work and work-related activity, the award is only to include one LCWRA element'. The formula summed an element for each member. The Universal Credit rebalancing modifier already sets one amount per award for 2026 to 2029, so this changes 2025 and 2030 onwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o a carer with the LCWRA element UC Regs 2013 reg. 29(2): 'an award is to include the carer element for both joint claimants if they both qualify for it, but only if they are not caring for the same severely disabled person'. The model does not record who is cared for; it already pays each of two carers Carer's Allowance, so it takes them to care for different people. Reg. 29(4): a claimant who is a carer and has limited capability for work and work-related activity has only the LCWRA element, unless that element is included for the other joint claimant. The formula included both elements for the same claimant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…trial injuries benefit, Attendance Allowance and armed forces payments UC Regs 2013 reg. 83(1)(a) to (e) name 'the claimant' or 'a claimant' for ESA with the support component, industrial injuries benefit, attendance allowance and armed forces compensation payments, where reg. 83(1)(f) to (ia) add 'a child or qualifying young person for whom a claimant is responsible' for disability living allowance and 'a qualifying young person' for personal independence payment and Carer's Allowance. HB Regs 2006 reg. 75F(1) draws the same lines. The exemptions summed every member of the benefit unit for all of them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ant with limited capability The contrib reform pays anyone 'receiving' the Universal Credit LCWRA element. Now that the element is the claimant's (UC Regs 2013 reg. 27(1)), a child's or qualifying young person's limited capability flag no longer qualifies them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s an element, against DWP's table of combinations Hypothesis properties: a dependant's disability, limited capability, caring or Carer's Allowance never changes the LCWRA element, the carer element or the work allowance; the elements match DWP's ADM F6037 table for all sixteen combinations of two claimants' carer and LCWRA status, with amounts written from the reg. 36 table; at most one LCWRA element and one carer element per claimant; a claimant's limited capability never lowers the elements; member order does not matter; and a dependant's ESA, industrial injuries benefit or armed forces compensation payment never exempts an award from the benefit cap, while a child's DLA always does. Towncrier fragment for the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ESA and IIB to the whole award The capped families' first dependant could be a 16-year-old outside non-advanced education, whom the model does not treat as a child or qualifying young person, so their DLA rightly did not exempt the award (reg. 83(1)(f)). A dependant's armed forces compensation payment makes them severely disabled for benefits, which changes the disabled child addition, so it is held only to the exemption flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 1, 2026
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.
Stacked on #1978 (
uc-claimant-only-income, which addsis_uc_assessed_claimant), itself on #1973 and #1949. Review the four commits on top of2a8129139.What was wrong
Universal Credit gave an award three amounts on any benefit-unit member's circumstances where the law reads only the claimant's (a single claimant, or each of two joint claimants: WRA 2012 s. 40):
uc_LCWRA_element) summeduc_limited_capability_for_WRAover every member. A disabled 10-year-old gave a lone parent the LCWRA element (£5,118.08 a year in 2026, after the rebalancing modifier) on top of the disabled child addition. Reg 27(1) includes it "in respect of the fact that a claimant has limited capability for work and work-related activity".uc_carer_element) wasdefined_for = "benunit_has_carer", andnum_carerscounts every member. A 17-year-old at school caring 40 hours a week, or reporting Carer's Allowance, gave the parent the carer element (£2,512.08). Reg 29(1) includes it "where a claimant has regular and substantial caring responsibilities for a severely disabled person".is_uc_work_allowance_eligible) usedbenunit.any(uc_limited_capability_for_WRA). Reg 22(1)(b)(i) has no work allowance "where a single claimant does not have, or neither of joint claimants has, responsibility for a child or qualifying young person or limited capability for work".Reading the same regulations turned up three more defects, fixed here too:
Changes (one commit each)
c2f0a209auc_LCWRA_element,uc_carer_elementandis_uc_work_allowance_eligiblereadis_uc_assessed_claimant. The cap's LCWRA exception now tests "the LCWRA element is included in the award" (reg 83(1)(a)) asuc_LCWRA_element > 0, so it follows the element.87b68c7a7One LCWRA element per award (reg 27(4)).84bb07808One carer element for each claimant who is a carer (reg 29(2)), none for a carer with limited capability unless the other joint claimant's LCWRA element is the one included (reg 29(4)). The model does not record who is cared for, so it takes two carers to care for different people, as it already does when it pays each of them Carer's Allowance.672e1e555Benefit cap: ESA, industrial injuries benefit, attendance allowance and AFCS exempt the award only when a claimant receives them. DLA stays claimant-or-child, PIP and Carer's Allowance or Carer Support Payment claimant-or-qualifying-young-person.0ef77e453Thedisability_basic_incomecontrib reform (off by default) pays for "receiving" the LCWRA element, so it now needs a claimant with limited capability, not any member with the flag.Not changed:
num_carers,benunit_has_carerandis_carer_for_benefits.uc_carer_elementno longer reads the shared variables, so their other readers are untouched:carer_minimum_guarantee_additionandincome_support_eligibleare restricted to the claimant or partner by Replace generic child and adult flags with each programme's legal definitions #1896 (the PC addition) and its stack.uc_non_dep_deduction_exemptis about the non-dependant's own caring, which is right.carer_premiumstill counts every member, against IS Regs 1987 Sch 2 para 14ZA ("the claimant or his partner is, or both of them are, entitled to a carer's allowance"). Fixing it needs Replace generic child and adult flags with each programme's legal definitions #1896'sis_claimant_or_partner, so it is a separate follow-up.uc_limited_capability_for_WRAis stillis_disabled_for_benefitsby default (DLA or PIP receipt in the data). This PR changes whose flag counts, not the proxy.Law
From legislation.gov.uk CLML (
/data.xml), current revised text, fetched 2026-10-01.UC Regs 2013 regs 22(1), 27, 29(1), (2), (4), 30(1), 83(1); HB Regs 2006 reg 75F(1); WRA 2012 ss. 12(1)-(2), 40
WRA 2012 s. 12:
WRA 2012 s. 40:
Reg 22(1)(b):
Reg 27:
Reg 29:
Reg 30(1)-(2):
Reg 83(1):
HB Regs 2006 reg 75F(1), the same split for Housing Benefit:
Reg 36 table (2026-27, a month): LCWRA element £217.26 (or £429.80 for a pre-2026 claimant, a severe conditions criteria claimant or a terminally ill claimant), carer element £209.34, disabled child addition lower rate £164.79. For 2025-26: LCWRA £423.27, carer £201.68. Reg 22 table, 2026-27: £710 higher and £427 lower work allowance.
DWP's Advice for Decision Making chapter F6, para F6037, tabulates which of the two elements an award includes for each combination. It is guidance, not law, and it matches regs 27(4) and 29(2), (4); the property tests check the model against it.
Tests
YAML (expected values hand-computed from the reg 36 and reg 22 tables):
uc_carer_element.yaml: 18 cases, replacing two that setbenunit_has_carerdirectly, which the element no longer reads. They cover reg 29(1) (a 17-year-old QYP who is a carer, by hours or by reported Carer's Allowance → 0), reg 30(2) (no claim needed), a third flagged claimant, reg 29(2) (two carers → 2 × 209.34 × 12 = £5,024.16) and every reg 29(4) combination.uc_LCWRA_element.yaml: 9 new cases. A disabled child → 0, with the disabled child addition of £1,977.48; a disabled QYP; a disabled parent of a disabled child → £2,607.12 + £1,977.48; reg 27(4), both claimants → one element (£5,079.24 in 2025-26, £2,607.12 in 2026-27); a third flagged claimant.is_uc_work_allowance_eligible.yamlanduc_work_allowance.yaml: limited capability of a single claimant or one joint claimant gives the work allowance (£8,520 / £5,124); a non-qualifying 17-year-old's, a third flagged claimant's or a looked-after child's does not.gov/dwp/benefit_cap/benefit_cap_exempt_whose_circumstances.yaml: 14 cases covering reg 83(1)(a), (b), (e), (f), (g), (i), (j). A dependant's IIB, ESA or AFCS → not exempt; the claimant's or partner's → exempt; a child's DLA, a QYP's PIP and a QYP's Carer's Allowance entitlement → exempt; a disabled child without DLA → not exempt.Hypothesis (
policyengine_uk/tests/test_uc_claimant_elements_properties.py). The populations are single claimants and couples (25-64) with up to four dependants aged 0-19, in or out of education, each randomly disabled, with LCWRA, caring 0/20/35/60 hours, reporting Carer's Allowance, and receiving ESA, IIB or AFCS. Rent varies, across England, Wales and Scotland, for 2025 and 2026. Invariants:uc_LCWRA_element,uc_carer_element,is_uc_work_allowance_eligibleoruc_work_allowance. Each dependant's four circumstances are cleared and the outputs must be identical.is_benefit_cap_exempt,benefit_cap_reductionoruniversal_creditfor capped families; a child's DLA always exempts, without an LCWRA element, and the same families without it are not exempt.Intended violations: none. Before this PR, invariants 1, 2 (reg 29(2), (4) rows, and reg 27(4) in 2025), 3 and 6 fail. The household probes below show the counterexamples, minimised to one family each.
Household probes
Synthetic households,
Simulation, council rent £18,000, North East. 2026 amounts include the UC rebalancing modifier, which sets an existing claimant's LCWRA element to the protected amount (£5,118.08). Base is the #1978 head2a8129139, branch672e1e555.Enhanced FRS impact
Real
Microsimulationruns on a private copy of the 2024-25 Enhanced FRS used for the #1978 runs (sha256e433e532…). There is one run per commit: the base2a8129139(the #1978 head) and each of the four commits. Every figure below comes from those six runs (no scaling). Aggregates only.2026 split by household origin: FRS-origin -2.083bn, SPI-synthetic -0.316bn.
How to read it:
is_disabled_for_benefits, which the data set from DLA or PIP receipt. In 2026 these are 466k weighted children under 16 and 82k young people aged 16 to 19. So those awards lose the LCWRA element but keep the disabled child addition. They also stay exempt from the cap through the child's DLA or the QYP's PIP (reg 83(1)(f), (g)): no benefit unit on UC changes cap status.targets/build_loss_matrix.py,storage/tax_benefit.csv). A dataset rebuilt on this model would reweight towards those totals; the figures here are on the current weights.Overlaps
remove-is-child-flags) rewrites thehas_childrenlines ofis_uc_work_allowance_eligible, next to thehas_LCWRAline this PR changes, so whichever merges second gets a textual conflict. Resolution: keep Replace generic child and adult flags with each programme's legal definitions #1896'shas_childrenand this PR'shas_LCWRA. Replace generic child and adult flags with each programme's legal definitions #1896 makesis_uc_claimantis_claimant_or_partner, whichis_uc_assessed_claimantreads unchanged. Replace generic child and adult flags with each programme's legal definitions #1896 does not touch the element or benefit cap files.is_benefit_cap_exempt_health_disabilityand_otherand addsarmed_forces_independence_payment. Resolution: keep Fix benefit cap exemption defects (#1818) #1820's deletions and put AFIP in the claimant-or-QYP list, with PIP, as HB reg 75F(1)(ea) groups it.is_benefit_cap_exempt_other. Resolution: keep Apply the benefit cap to mixed-age couples on Universal Credit, and keep them off pensioner Council Tax Reduction #1944'spension_age_housing_benefitand this PR's claimant-only AFCS and ESA lines.carer_premiumcounts every member (IS Regs Sch 2 para 14ZA: "the claimant or his partner"); it needs Replace generic child and adult flags with each programme's legal definitions #1896'sis_claimant_or_partner.is_severely_disabled_for_benefitstreats any AFCS payment as severe disability, which gives a child the higher disabled child addition.Axiom
axiom: pending. A Subfleet lane is checking
uk/regulations/uksi/2013/376/22,/27and/29. They take per-claimant inputs, so they look encoded-correct, but they need companion cases for reg 27(4), 29(2), 29(4) and the reg 22 LCW-only work allowance. The lane is also checking the UC ProgramSpec, which sums the carer element overadult_of_benefit_unit, and reg 83, which has no module (TheAxiomFoundation/rulespec-uk#389). This line will be replaced with the final route.Verification
policyengine-core test policyengine_uk/tests/policy: 1,394 passed (at672e1e555). The contrib test file, re-run after0ef77e453, passed 9 of 9.main.🤖 Generated with Claude Code