Repository navigation
Conversation
…carer test and Scottish working-age CTR carer premium The severe disability premium, the pension-age premium and the Pension Credit severe disability addition now treat a person as cared for when a carer's Universal Credit award includes the carer element, read from the claim and the award's conditions (has_uc_award_with_carer_element) because the award itself depends on Pension Credit. Scotland's working-age council tax reduction pays the carer premium for an award of Universal Credit which includes the carer element (SSI 2021/249 Sch 1 para 6(1)(c)) from 1 April 2022, through council_tax_reduction_carer_premium. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Scottish carer premium YAML cases with the arithmetic worked from the 2026-27 rates: the blind carer of #2120, a carer inside and outside the benefit unit, a carer on Carer's Allowance and Universal Credit, partners caring for the same person, the nil award, and the Scottish carer of #2124 in 2021, 2022 and 2026 with English and Welsh controls. Property tests check that the limb changes nothing without a carer element, never raises the severe disability premium or addition, never lowers the carer premium, and that every reader calculates on one simulation in any order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l-award rule has_uc_award_with_carer_element now also needs a positive uc_award_upper_bound: the award before any non-dependant deduction, worked in the award's own order of operations so it never falls below universal_credit_pre_benefit_cap. A carer whose income tapers the award to nil has no award (Welfare Reform Act 2012 s.5(1)(b); UC Regs 2013 reg 17) and no longer bars the severe disability premium or the Pension Credit addition. Where universal_credit is stored or neutralized, the test reads the award itself (receives_uc_carer_element). Scotland's working-age carer premium counts a nil award with the carer element from 1 April 2022 to 31 March 2025, when SSI 2021/249 reg 4 defined an award of universal credit to include one with a value of zero (SSI 2022/52 reg 3), and reads the positive award from 1 April 2025 (SSI 2025/24 reg 8). The new parameter uc_award_includes_zero_value_award carries the dates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A traced calculation of uc_award_upper_bound for a pensioner and her blind son, who rent privately, reaches none of pension_credit, the housing costs element, the non-dependant deduction or its exemption, the maximum amount, the income reduction, the award or the attribution. The changelog now gives the Scottish nil-award dates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docstrings only: uc_award_upper_bound names who deducts, awards and sets the minimum, and has_uc_award_with_carer_element states the nil-bound rule plainly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docstrings and one label only. uc_award_upper_bound's label names it an upper bound on the award; the attribution, addition, CTR carer premium and CTR premiums docstrings name who reads or pays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments only: DWP deducts and the council counts, and the disabled person keeps the premium in law. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e award Allowlist the strict expected failures under #2795 so CI's outcome check accepts them, and add the third route: a carer with limited capability for work and a £600 council rent, whose award comes to nil under the lower work allowance while the bound's calculation without housing costs leaves £461.10. The test asserts the law's £4,474.60 premium and raises RuntimeError when a premise fails. test_upper_bound_matches_real_award_endpoints compares the bound exactly with the larger of two real awards, one with non-dependant deductions supplied as nil and one with the housing costs element supplied as nil, before the cap and finally, over every element, both work allowances and rows within a few float32 steps of a nil award. test_the_bound_reads_every_component_of_the_maximum_amount checks that the bound reads each element of uc_maximum_amount in order and every input of the award's steps apart from the deduction, the Tax-Free Childcare choice and the claim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2-25 reading The bound's documentation and the readers that cite it now name all three ways it can exceed a nil award (#2795): a non-dependant deduction, Tax-Free Childcare, and a small housing costs element with a work allowance. They limit the upper-bound claim to awards the model's formulas calculate; a stored award can exceed it, and the carer test then reads it. The Scottish premium's documentation, parameters, YAML comments and changelog state the 2022-23 to 2024-25 nil-award rule as the model's reading of reg 4, which UC Claims and Payments Regs reg 32A(1)(a), the SSI 2025/24 policy note and Ipswich BC v TD [2024] UKUT 117 (AAC) leave open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The attribution's documentation, the two YAML files' comments and case names, the property test's docstring and comments, and the allowlist reasons now name who acts and use verbs in place of be-verb complements. No formula or expected value changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…riant The bound's documentation opens with what never exceeds it and names has_uc_award_with_carer_element as its reader; the Scottish premium cites the financial condition reg 32A(1)(a) turns on; the attribution comment matches its documentation; and the property test's docstring numbers the trace, parity and component checks 8 to 10, as the pull request does. No formula changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bound's housing costs read uc_LHA_cap, and the comparison's only private renter paid less than the cap, so a copy that used the full rent passed. A lone parent renting privately for £30,000 a year, capped at £18,600, now adds 18 rows (126 in all), and the test asserts that the rows include a housing costs element held to the cap. The Scottish carer-premium YAML cites paras 5(2) and 6(1) for a single applicant with two qualifying limbs. Documentation and comments name their actors; no formula changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments, docstrings, YAML notes and the zero-value parameter's description give each step to DWP, councils, the Scottish Ministers or the model, and drop sentences about earlier code. No formula or expected value changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bound's documentation now compares the deduction with the housing costs DWP allows, capped at the Local Housing Allowance rate for a private renter. Three documentation sentences name their actor, and the YAML comments in the two carer test files wrap without orphaned words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6KFgPgaVD6zHA1bFq9
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 checkEach of 92 components was raised by £1 per unit in 2026-27, and every head of its totals was read 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 head that breaks a rule is measured again twice: with every other head held at its baseline value, and with every other head held at its value after the first £1 while the component rises again. It fails where either still shows the response. 0 failed; 0 were skipped.
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
|
juaristi22
left a comment
There was a problem hiding this comment.
Reviewed f9fdc636a34ce29e0de508b0b5386ea70175e727. REQUEST_CHANGES: C1 is a confirmed material defect. Overall review PARTIAL because two source questions also remain unresolved.
C1 — A positive hypothetical UC bound is not an actual award. At has_uc_award_with_carer_element.py:65, uc_award_upper_bound > 0 can be true when final UC is zero. The new attribution then wrongly removes the cared-for person's severe disability addition. SPC Schedule I paragraph 1 requires an actual UC award including the carer element; the earnings-nil distinction is supported by WRA section 5, UC regulation 17 and Ipswich BC v TD, paragraphs 36–39.
Executed 2026 example in England: a blind 35-year-old household head has an LCW determination, cares 35 hours, earns £25,000 annually, claims no Carer's Allowance and pays £600 annual council rent. A 75-year-old in a separate benefit unit in the same household receives higher Attendance Allowance and £10,000 State Pension. Both actual UC awards calculate to zero, but the carer's bound is £461.10 and the new predicate reads true. Final Pension Credit is £2,376 instead of £6,850.60; household net income is £40,154.80 instead of £44,629.40. The blind-resident exception is supported by SPC paragraph 2(2)(b). A fresh control setting only the new carer-award limb false isolates the £4,474.60 annual loss; this is not a separately executed base branch.
Please distinguish actual-zero award routes without reintroducing the documented UC/PC dependency cycle. Require the three #2795 legal-outcome tests to pass and remove their xfail/allowlist exceptions. Local validation was 99 passed, three strict expected failures, with no unexpected failures. Those expected failures expose this defect; green CI does not establish those outcomes are correct.
Two additional material evidence gaps remain, independently of C1:
- The Scottish 2022–2024 earnings-nil interpretation needs authority reconciling the old zero-value-award definition, regulation 32A and the 2025 expansion. I am not asserting that interpretation is wrong.
- The changed shared severe-disability variables reach Northern Ireland, but the operative NI UC-carer/minimum-award counterparts were not fully established within the bounded source review. GB clauses do not certify NI results.
The actual Axiom #520 dispatch is filed with source excerpts, outputs, companions and approval/ingest blockers. It does not resolve the historical Scottish interpretation or amount to completed parity. Positive-award PC and Scottish final CTR/household-income paths, supplied-input/cache/deletion checks and the other new properties passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FQc4koGSzCUYko19B
|
Picking this up for the UK hub. Reply here if you're mid-change and I'll stop. Generated by Claude Code |
…ty carer test has_uc_award_with_carer_element now reads the award before the benefit cap (universal_credit_pre_benefit_cap), so a carer whose award a non-dependant deduction, the Tax-Free Childcare choice or the taper with a lower work allowance takes to nil has no award. The non-dependant deduction's Pension Credit branch keeps that read from cycling; the benefit cap, which reads Child Tax Credit and so Pension Credit, would not, so the test reads the award before the cap. Remove uc_award_upper_bound and its tests, the three expected-failure markers and their allowlist entries, add the executed English case and a Northern Ireland case, pin the branch's armed forces independence payment case, and cite Northern Ireland's counterparts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FQc4koGSzCUYko19B
…n every year An earnings nil case leaves no award to have a value of zero under SSI 2021/249 reg 4 as it stood from 2022 to 2025, so limb (c) of Sch 1 para 6(1) reads the positive award from 2022-23. Remove uc_award_includes_zero_value_award and update the 2024 case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FQc4koGSzCUYko19B
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Ready for hub review Head: Findings and resolutionsC1: the carer test now reads the actual award.
The cycle and the cut.
The #2795 tests. I removed the strict xfails and the 3 allowlist entries (the allowlist now matches
Each now also asserts that the carer test is false. juaristi22's case. I added it as YAML in
The bound. I removed it: nothing reads Scotland. Northern Ireland.
Tests at
|
|
Thanks for the review (review). We moved the branch to
At |
juaristi22
left a comment
There was a problem hiding this comment.
Re-reviewed 31139e822c91a1c052eaccd335e1ece0f856797b. COMPLETE — C1 resolved; one nonblocking finding remains, no material evidence gaps.
The hypothetical UC bound is gone. The original nil-award case now retains the £4,474.60 severe-disability addition, giving Pension Credit £6,850.60 and household net income £44,629.40. Positive-award cases still remove the addition. The Scottish change and new NI primary evidence resolve the previous source gaps within the stated scope. The actual #520 addendum was checked, including its replacement for case9.
A1 — Correct the blind-renter legal comparison. The cycle section and test_uc_carer_element_award_properties.py:744–768 describe the forced-exemption-false control (£1,158.60 contribution; UC £2,596.50) as the legal outcome. This fixture has a blind single renter: UC Schedule4 paragraph15(1)(a),(2)(a) exempts that renter from all paragraph13 contributions. Relabel that control as counterfactual and correct the body/test explanation, or use a coherent separate example. The current £3,755.10 award is not established to be an overpayment.
Validation: 104/104 tests passed, plus native final PC/CTR/net-income and cache/input checks; exact snapshot dependency pins verified. Independent source review checked 50 originals/extracts. No broad main-merge audit or population estimate is claimed.
|
Picking this up for the UK hub. Reply here if you're mid-change and I'll stop. Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6HcTFPvy9Mo5Upj4Rk
After the merge with main, the model exempts the veteran from the non-dependant deduction through armed forces independence payment, which UC Regs 2013 reg 2 counts as attendance allowance for Sch 4 para 16(2)(d). The veteran test now asserts the model's figures with the branch's Pension Credit result supplied as false, labels the forced-deduction run a counterfactual, and records that Sch 4 para 15 exempts the blind single renter from every deduction. A new test pins a blind partner whose deduction the branch's result decides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6HcTFPvy9Mo5Upj4Rk
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Ready for hub review Head: Step 1: the merge, before any other change
A1: the veteran test (
|
| PR | head | conflicts with this head | also with main? |
|---|---|---|---|
| #2808 | 6563f73e5 |
council_tax_reduction_premiums.py |
no (main merges #2808 cleanly) |
| #2861 | 6e96ffef8 |
council_tax_reduction_premiums.py; council_tax_reduction_pension_credit.yaml; test_council_tax_reduction_pension_credit_properties.py; council_tax_reduction_applicable_income.py |
the premiums file no; the other three yes |
| #2826 | 87cbc397e |
none | none |
| #2007 | fde435bd3 |
docs/book/programs/gov/dwp/housing-benefit.ipynb; policyengine_uk/tests/shard_durations.toml |
yes, both |
| #1966 | a013f520a |
test_council_tax_reduction_pension_credit_properties.py; test_means_test_income_properties.py; council_tax_reduction_pensioner.py |
yes, all three |
| #2017 | b3e0d76b8 |
housing-benefit.ipynb; shard_durations.toml |
yes, both |
#2017. In a scratch merge of #2017 into this head, I resolved the two conflicts with -X ours. There the model deducts nothing in every variant of both households (default, flag false, veteran_exempt=False, blind partner, blind partner with flag false), and the award stays at £3,755.10. So when #2017 lands, two assertion blocks need the law's figure, no deduction: the counterfactual block in the veteran test and the flag-false block in the blind-partner test. #2017's uc_non_dep_deductions_renter_exempt reads attendance_allowance > 0, so it misses a renter on armed forces independence payment, whom para 15(2)(c) covers through reg 2's head (f). The body records both points.
Skipped, and judgment calls
- Not rerun: the 150-household differential, and the mutations other than B3. The body labels B1, B2 and B4–B7 at
b6b1ce7c, S1 and S2 at31139e82, and M4–M6 atfff13eda8. The old merged-tree runs for Add pensioner CTR child amounts and uncap Scotland's tariff income #2826 and Fix HB and national CTR non-dependant deductions #2007 stay labelled at31139e82. - I kept the counterfactual run because it shows the award keeps the carer element under a deduction. If the hub would rather drop it, the two Charge non-dependant deductions within the claimant's benefit unit #2017 points above shrink to one.
- In the body's step-3 paragraph I cite para 1(1)(c)(iii) as the residence condition for head (c), quoting
LAW-2827.md. For joint renters I rely on the body's existing reading that "joint renters" means joint claimants (para 1(2)), which I can't quote from the brief's extracts. - The title stays unchanged. I posted nothing on rulespec-uk#520.
PR_TITLE.txt
Count UC carer awards for severe disability and Scottish CTR premiums
REPLY.md
Thanks for the re-review of `31139e82`. On A1:
- **The test.** `test_the_non_dependant_branch_reads_the_award_without_housing_costs` no longer calls the forced deduction the law's outcome. With `uc_non_dep_receives_pension_credit` supplied as false, its value in law, the test now asserts what the merged code gives: no deduction, an award of £3,755.10 that still includes the carer element, and nil Pension Credit for the veteran. The run with £1,158.60 deducted and an award of £2,596.50 stays as a counterfactual, with the veteran's exemption supplied as false; the comment says that neither the law nor the model gives it and that the award keeps the carer element even then. The comment now gives the law's two grounds for deducting nothing: Sch 4 para 15(1)(a) and (2)(a) exempt the carer, a blind single renter, and para 16(2)(d), read with head (f) of reg 2's definition of "attendance allowance", exempts the veteran. The model holds the second but not the first, so its award and the law's agree. The comment also corrects the branch's Pension Credit to £3,936.60: the veteran pays £86 of income tax.
- **The merge with `main`.** This head merges `main` at `557087da1`, which brought #2815's exemption for armed forces independence payment. At the merge, before any other change, the old assertions failed (`0.0 == 1158.6`). Since #2815, the branch's result can change the model's deduction only for a blind partner under SPC Sch I para 1(1)(c). A new test, `test_the_branch_decides_a_blind_partners_deduction`, pins that case: the branch exempts the partner, and DWP deducts nothing either, through para 15. The body's cycle section explains when para 15 decides these households and where the extracts leave a question open. It also notes that #2017's renter exemption reads Attendance Allowance but not armed forces independence payment.
- **Runs at `f75f41abc`.** All 13 tests in the carer file passed. The 29 YAML files passed 439 cases, and #2815's three YAML files passed 24. The seven reader suites and #2815's property suite all passed, as did `code_health` (3,153 tests). Mutation B3 gives a `CycleError` in 12 of 13 property tests and 10 of 12 YAML cases. Fix evidence, ruff and `git diff --check` came back clean.
PR_BODY.md
Fixes #2120
Fixes #2124
## What and why
DWP and councils count Universal Credit carer-element awards, as they count Carer's Allowance and Carer Support Payment, when deciding the premiums and additions below. The model left the awards out.
- **Severe disability premium and Pension Credit addition (#2120).** DWP and councils withhold the premium or addition when a carer "has an award of universal credit which includes the carer element in respect of caring for" the claimant (HB Regs 2006 Sch 3 para 14(2)(a)(iii) and (b)(iii); HB(SPC) Regs 2006 Sch 3 para 6(2); IS Regs 1987 Sch 2 para 13(2); [SPC Regs 2002 Sch I para 1(1)(a)(iii), (b), (c)(iv) and (4)](https://www.legislation.gov.uk/uksi/2002/1792/schedule/I/paragraph/1)). Councils apply the same words in England's, Wales's and Scotland's pension-age council tax reduction schemes. `is_cared_for_by_carer_benefit_recipient` attributed only Carer's Allowance and Carer Support Payment.
- **Scotland's working-age CTR carer premium (#2124).** The Scottish Ministers require councils to include the premium for an applicant or partner who has "an award of universal credit which includes the carer element described in regulation 29" (SSI 2021/249 Sch 1 para 6(1)(c)). `carer_premium` applied limbs (a) and (b) only. No other scheme's carer premium has limb (c): under HB Regs 2006 Sch 3 para 17, HB(SPC) Sch 3 para 9, IS Sch 2 para 14ZA, England SI 2012/2885 Sch 2 para 9, Wales WSI 2013/3029 Sch 2 para 9 and Sch 7 para 14, Scotland SSI 2012/319 Sch 1 para 10 and the pre-2022 SSI 2012/303 Sch 1 para 14, DWP and councils test entitlement to Carer's Allowance or Carer Support Payment.
### Changes
- **`has_uc_award_with_carer_element` (Person)** reads the carer's actual award. It counts a claimant in respect of whom the award includes the carer element (`uc_carer_element_included_for_claimant`) where the family's award before the benefit cap (`universal_credit_pre_benefit_cap`) comes to more than nil. Parliament makes it a financial condition of an award that the amount payable reach the prescribed minimum ([Welfare Reform Act 2012 s.5(1)(b) and (2)(b)](https://www.legislation.gov.uk/ukpga/2012/5/section/5)), and DWP sets that minimum at one penny ([UC Regs 2013 reg 17](https://www.legislation.gov.uk/uksi/2013/376/regulation/17)). SPC Sch I para 1(4) asks whether "the person has an award of universal credit which includes an amount which is the carer element under regulation 29". So a carer whose award comes to nil, however it gets there, has no award and no longer bars the premium or addition. Where an input or a scenario stores `universal_credit` for the period, or a reform neutralizes it, the test reads the award itself (`receives_uc_carer_element`): reading a stored award runs no formula, so it cannot cycle. `universal_credit` joins `SUPPLIED_INPUT_VARIABLES` for that check.
- **The award before the cap.** `universal_credit` subtracts the benefit cap reduction, which reads Child Tax Credit, whose income reads Pension Credit, whose addition reads the carer test, so a carer test that read `universal_credit` would cycle. The award before the cap and the final award agree for a family whose award includes the carer element: DWP exempts that award from the cap (UC Regs 2013 reg 83(1)(j); `is_uc_benefit_cap_exempt_specified_benefit`), and `uc_deductions` leaves at least one penny payable. Invariant 5 checks that agreement.
- **`is_cared_for_by_carer_benefit_recipient`** counts a carer-element holder as a carer, in the existing attribution order: claimants and partners of the carer's own benefit unit first, then other members, then claimants and partners of other benefit units, eldest unit first. A carer with both Carer's Allowance and a carer element counts once (SSCBA 1992 s.70(7)). Partners caring for the same severely disabled person have one relevant entitlement between them (s.70(7ZA) and (7A)), so where one receives a carer benefit, the other's carer element adds no second carer.
- **New `council_tax_reduction_carer_premium` (BenUnit).** `council_tax_reduction_premiums` reads it at working age in the same way as `council_tax_reduction_severe_disability_premium`. Outside Scotland's working-age scheme it equals `carer_premium`. In Scotland it counts each claimant or partner entitled to Carer's Allowance or Carer Support Payment (limbs (a) and (b), as `carer_premium`) or with an award of at least one penny that includes the carer element (limb (c), `receives_uc_carer_element`), in every year from 2022-23. It counts each person once (paras 5(2) and 6(1)), and only one of two partners who care for the same person (para 5(3) and (4)). Councils give the carer-element holder priority under para 5(4), which leaves the amount unchanged.
- **Parameter** `gov.local_authorities.scotland.council_tax_reduction.working_age.carer_premium_counts_uc_carer_element`: false from 1 April 2013, true from 1 April 2022.
- Documentation of `severe_disability_premium`, `pension_age_severe_disability_premium`, `severe_disability_minimum_guarantee_addition`, `carer_premium` and `council_tax_reduction_premiums` now describes the limb. A household head who applies alone holds no Universal Credit award of their own in the model, so the head branch of `council_tax_reduction_premiums` keeps its carer test.
### Three routes to a nil award, and the executed case
Each of these awards comes to nil, so the carer has no award, and the model now pays the premium or addition. `policyengine_uk/tests/test_uc_carer_element_award_properties.py` asserts each, after premise checks that raise `RuntimeError`.
- **A non-dependant deduction** (`test_a_non_dependant_deduction_that_takes_the_award_to_nil_leaves_no_award`). A carer aged 40, not blind, cares 35 hours a week for a disabled person aged 50 on the PIP daily living component and earns £27,000. The carer and the disabled person rent a home privately, each liable for half of £12,000, and a blind non-dependant aged 30 earning £20,000 lives with them. DWP deducts £96.55 × 12 = £1,158.60 a year for the non-dependant (UC Regs 2013 Sch 4 paras 13 and 16; blindness brings no exemption, and para 15 does not exempt the carer: the carer claims alone, and the Schedule reserves "joint renters" for joint claimants (para 1(2)), so the disabled co-tenant's PIP brings the carer no exemption under para 15(1)(b)). The carer's housing costs element falls to £6,000 − £1,158.60 = £4,841.40 and the maximum amount to £12,452.28, which the taper of 0.55 × £22,959.60 = £12,627.78 exceeds, so the award comes to nil. DWP does not count the disabled person, a joint tenant, as the carer's non-dependant (para 9(2)(d)), and the council does not count the carer as the disabled person's (HB Regs 2006 reg 3(2)(d)). A blind non-dependant does not bar the disabled person's premium (Sch 3 para 14(4)). The model now pays the disabled person the premium of £86.05 × 52 = £4,474.60.
- **Tax-Free Childcare** (`test_a_family_that_takes_tax_free_childcare_instead_has_no_award`). A blind carer aged 35, earning £60,000, has a child aged 3 in £12,000 of childcare, and the disabled person aged 60 on the PIP daily living component lives in another benefit unit of the household. The family's award would come to £21,458.16 − £20,260.57 = £1,197.59, and Tax-Free Childcare to £2,000, so the family takes no award (`forgoes_universal_credit_for_tax_free_childcare`). The model now pays the disabled person the premium of £4,474.60.
- **A small housing costs element with a work allowance** (`test_small_housing_costs_with_a_work_allowance_leave_no_award`). A blind carer aged 35 cares 35 hours a week for a disabled person aged 60 on the PIP daily living component, who lives in another benefit unit of the household and claims no Universal Credit. DWP has determined that the carer has limited capability for work (UC Regs 2013 reg 39(1)(a)), and under reg 41(1A) cannot treat the carer's paid work as a relevant change of circumstances when it decides whether to reassess that determination (reg 41(1)(b)). So the award has a work allowance (reg 22(1)(b)) and the carer element too: DWP puts the LCWRA element in its place only for a claimant who also has limited capability for work-related activity (reg 29(4)). The carer earns £25,000, claims no Carer's Allowance and pays the council £600 a year in rent. After income tax of £2,486.00 and National Insurance of £994.40, the carer keeps earned income of £21,519.60. With a housing costs element of £600, DWP applies the lower work allowance, £427 × 12 = £5,124 (reg 22(2)(b)). DWP's reduction of 0.55 × (£21,519.60 − £5,124) = £9,017.58 exceeds the maximum amount, (£424.90 + £209.34) × 12 + £600 = £8,210.88, so the award comes to nil. The council ignores the blind carer as a resident (HB Regs 2006 Sch 3 para 14(4)(b)), and the model now pays the disabled person the premium of £4,474.60.
- **The executed case** (`uc_carer_element_carer_test.yaml`, the case "A blind carer whose award comes to nil with a small housing costs element does not bar a pensioner's addition"). The carer of the third route, now the household head, cares for a person aged 75 in another benefit unit who receives Attendance Allowance at the higher rate, £114.60 × 52 = £5,959.20, and £10,000 of State Pension. The carer's award comes to nil as above. DWP ignores the blind carer as a resident ([SPC Sch I para 2(2)(b)](https://www.legislation.gov.uk/uksi/2002/1792/schedule/I/paragraph/2)), and no one has an award including the carer element in respect of caring for the pensioner, so DWP includes the addition, £86.05 × 52 = £4,474.60. The minimum guarantee comes to £238.00 × 52 + £4,474.60 = £16,850.60, and against £10,000 of State Pension, guarantee credit comes to £6,850.60; qualifying income of £192.31 a week falls short of the savings credit threshold of £208.07. Household net income comes to £25,000 + £10,000 + £5,959.20 + £6,850.60 + £200 Winter Fuel Payment + £100 Household Energy Payment − £2,486.00 − £994.40 = £44,629.40. Counting the carer would take the addition away and leave Pension Credit at £2,376.00 and household net income at £40,154.80; the model now gives £6,850.60 and £44,629.40.
### The cycle and where the model cuts it
The carer test reads the award, and three routes lead from the award back to the carer test:
- **The non-dependant deduction.** With the cut removed, a trace runs `universal_credit_pre_benefit_cap` → `uc_maximum_amount` → `uc_housing_costs_element` → `uc_non_dep_deductions` → `uc_individual_non_dep_deduction` → `uc_individual_non_dep_deduction_eligible` → `uc_non_dep_deduction_exempt` → `uc_non_dep_receives_pension_credit` → `pension_credit` → … → `severe_disability_minimum_guarantee_addition` → `is_cared_for_by_carer_benefit_recipient` → `has_uc_award_with_carer_element`.
- **Tax-Free Childcare.** `forgoes_universal_credit_for_tax_free_childcare` reads `uc_maximum_amount` and `uc_income_reduction`, and so the same housing costs element.
- **The benefit cap.** `universal_credit` → `uc_benefit_cap_reduction_after_floor` → `uc_benefit_cap_reduction` → `benefit_cap_welfare_benefits` → `child_tax_credit` → `ctc_entitlement` → `child_tax_credit_pre_minimum` → `tax_credits_reduction` → `tax_credits_applicable_income` → `pension_credit`.
`uc_non_dep_receives_pension_credit` already calculates the non-dependant family's Pension Credit in a branch (`simulation.get_branch`) with `uc_housing_costs_element` supplied as nil for every family. In policyengine-core 3.34.1, which `uv.lock` pins, `_check_for_cycle` compares only the stack frames whose `branch_name` matches the calculating simulation's, and in the branch the housing costs element reads no formula. So the branch keeps a carer test that reads the award before the cap from cycling through the first two routes: in the branch, the test reads the award without housing costs. The branch does not cut the third route, which cycles inside the branch, so the carer test reads the award before the cap rather than `universal_credit`.
The branch's result decides only the exemption in `uc_non_dep_deduction_exempt`; nothing else reads `uc_non_dep_receives_pension_credit`. The attribution can change that exemption only through the Pension Credit addition of the non-dependant's own family, which then gets Pension Credit with the addition and none without it (`uc_non_dep_receives_pension_credit` reads `pension_credit` for the whole family). The addition needs a claimant or partner with a qualifying benefit in SPC Sch I para 1(1), and the model reads the list from `gov.dwp.pension_credit.guarantee_credit.severe_disability.relevant_benefits`: Attendance Allowance, the DLA care component at the middle or highest rate, the PIP daily living component and armed forces independence payment. `uc_non_dep_deduction_exempt` exempts everyone who receives one of the four in their own right: the DLA care component under UC Regs 2013 Sch 4 para 16(2)(c), the PIP daily living component under para 16(2)(e), and Attendance Allowance and armed forces independence payment under para 16(2)(d), which uses "attendance allowance" as reg 2 defines it, with armed forces independence payment at head (f) (`uc_receives_attendance_allowance`). So the branch's result can change the model's deduction only for a member of that family who receives none of the four and has no other exemption: under head (c) of SPC Sch I para 1(1), a blind partner of a claimant who receives one. Para 16(2) lists no blindness. Where the branch's Pension Credit and the family's own differ, the model then reads that partner's exemption from the counterfactual award.
The law treats those households differently from the model. The family gets the addition under head (c) only if "no person who has attained the age of 18 is normally residing with the partners, nor are the partners normally residing with such a person, other than a person to whom paragraph 2 applies" (para 1(1)(c)(iii)), and the renter lives with them. DWP ignores, under para 2(2), a person who receives a qualifying benefit (head (a)) or whom a consultant ophthalmologist has certified as severely sight impaired or blind (head (b)). Under UC Sch 4 para 15(1)(a), DWP makes no para 13 deduction at all for a single renter to whom para 15(2) applies, and para 15(2) lists a blind person (a), the DLA care component at the middle or highest rate (b), attendance allowance (c), which reg 2's head (f) extends to armed forces independence payment, the PIP daily living component (d) and the Scottish payments ((bb), (ca) and (da)). So wherever DWP ignores a single renter under para 2(2)(a) or (b), it deducts nothing for any non-dependant, whatever the non-dependant's Pension Credit. A couple who claim jointly both live with the partners, so DWP must ignore both, and para 15(1)(b) then exempts them through either. The extracts leave two questions open: a renter whom DWP ignores only under heads (c) to (f) of para 2(2) (certified blind until up to 28 weeks earlier, engaged by a charity to care, that carer's partner, or a child or qualifying young person), whom para 15(2) does not list; and any person under a sub-paragraph of para 2 after (2), which the extracts do not hold. The model ignores a resident who is blind, receives a qualifying benefit or counts as a qualifying young person (`is_counted_resident_for_severe_disability_addition`), so in the model too the addition needs such a renter. The model holds no para 15 exemption, so it deducts for the blind partner unless the branch's result exempts the partner.
`test_the_non_dependant_branch_reads_the_award_without_housing_costs` pins the branch's reading, whichever of `universal_credit`, `pension_credit` and the carer test the simulation requests first. A blind carer aged 40 earning £20,000 rents from the council at £6,000 a year as household head and cares for a veteran aged 70 in another benefit unit, who receives armed forces independence payment and £13,000 of State Pension. The carer's award comes to (£424.90 + £209.34) × 12 + £6,000 − 0.55 × £17,919.60 = £3,755.10, which includes the carer element, so the veteran gets no addition and, keeping £12,914.00 after £86.00 of income tax against a standard minimum guarantee of £238.00 × 52 = £12,376.00, no Pension Credit. In the branch, without housing costs, the carer's award comes to nil, the veteran gets the addition and Pension Credit of (£238.00 + £86.05) × 52 − £12,914.00 = £3,936.60, and the branch returns true. With the branch's result supplied as false, its value in law, the model still exempts the veteran through armed forces independence payment, deducts nothing, and leaves the award at £3,755.10 with the carer element and the veteran's Pension Credit at nil. DWP deducts nothing for this household either, on two grounds: para 15(1)(a) and (2)(a) exempt the carer, a blind single renter, from every deduction, and para 16(2)(d), read with head (f) of reg 2's definition of "attendance allowance", exempts the veteran. The model holds the second ground but not the first, so the model's award and the law's agree, and nothing shows the award of £3,755.10 to overpay. The test also runs a counterfactual that neither the law nor the model gives this household: with the veteran's exemption supplied as false, the model deducts £96.55 × 12 = £1,158.60 and leaves £2,596.50, which still includes the carer element, so even a deduction would leave the carer test and the veteran's nil Pension Credit unchanged.
`test_the_branch_decides_a_blind_partners_deduction` pins a household where the branch's result decides the model's deduction. The veteran now has £21,000 of State Pension and a blind partner aged 68 who receives no disability benefit. After income tax of (£21,000 − £12,570) × 0.20 − £1,260 × 0.20 = £1,434.00, with the partner's marriage allowance, the couple keep £19,566.00, which exceeds the couple's standard minimum guarantee of £363.25 × 52 = £18,889.00, so they get no Pension Credit. In the branch, head (c) gives them the addition and Pension Credit of (£363.25 + £86.05) × 52 − £19,566.00 = £3,797.60, so the branch returns true, and the model exempts the partner, deducts nothing and leaves the carer's award at £3,755.10. With the branch's result supplied as false, its value in law, the model deducts £1,158.60 for the partner and leaves £2,596.50. DWP deducts nothing, because para 15(1)(a) and (2)(a) exempt the carer, so the model's result agrees with the law's through the branch, not through para 15.
### Scotland's definition by date
Before the scheme started on 1 April 2022, the Scottish Ministers inserted into SSI 2021/249 reg 4(1) (SSI 2022/52 reg 3(b)):
> "award of universal credit" includes a universal credit award with a value of zero,
From 1 April 2025, they substituted (SSI 2025/24 reg 8):
> "award of universal credit" means an award of universal credit made under Part 1 of the 2012 Act,
and inserted reg 10A (reg 9):
> For the purposes of these Regulations an award of universal credit includes—
> (a) an award the amount of which is reduced to zero, as a result of a failure by a claimant which is sanctionable under section 26 (higher-level sanctions) or section 27 (other sanctions) of the 2012 Act, and
> (b) an award to which entitlement has ceased in terms of regulation 32A(1)(b) of the Universal Credit, Personal Independence Payment, Jobseeker's Allowance and Employment and Support Allowance (Claims and Payments) Regulations 2013 (reclaims of universal credit after nil award due to earnings), but in relation to which the Secretary of State treats the claimant as making a claim under regulation 32A(2) of those Regulations.
UC Claims and Payments Regs 2013 reg 32A(1):
> (1) This regulation applies where—
> (a) a claim is made for universal credit, but no award is made because the condition in section 5(1)(b) or 5(2)(b) of the 2012 Act (condition that the claimant's income, or joint claimants' combined income is such that the amount payable would not be less than the prescribed minimum) is not met; or
> (b) entitlement to an award of universal credit ceases because that condition is not met.
In its policy note to SSI 2025/24, the Scottish Government records the 2022 intention:
> When the Working Age Regulations were brought into force in April 2022, the policy intention was to ensure that in instances where a Universal Credit claimant was receiving £0.00 in Universal Credit due to excess earnings in any Universal Credit assessment period their CTR calculation would be carried out as though the person did have an award of Universal Credit.
and describes reg 10A as:
> an expansion of the circumstances in which the provisions applicable to a council tax reduction applicant with an award of Universal Credit will be taken to continue to apply - covering the scenario of a council tax reduction applicant who is a Universal Credit claimant falling within regulation 32A(2) of the 2013 Regulations, as well as, as at present, the scenario of a claimant the amount of whose award is reduced to zero. A reduction to zero will take place because of a sanction, rather than because of excess earnings.
From 2022-23 to 2024-25 the Scottish Ministers' definition takes in an award that exists with a value of zero, and in its note the Scottish Government confines that case to a sanction. Earnings that take the amount payable below one penny fail the s.5 financial condition, so DWP makes no award or entitlement to the award ceases, and no award remains to have a value of zero. The Scottish Ministers added reg 10A(b) in 2025 to bring part of that case in. So the model reads limb (c) from the positive award (`receives_uc_carer_element`) in every year from 2022-23. A council could still read the 2022 definition to take in an award that earnings end, for its last assessment period and any reclaim months from 2022-23 to 2024-25. The model cannot tell that award from a first claim, on which DWP makes no award (reg 32A(1)(a)). The model has no input for a sanction or a reg 32A reclaim, so it pays no premium for reg 10A's awards, nor for a sanctioned nil award before 2025.
For example, take a Scottish carer aged 40 who cares 35 hours a week, claims neither Carer's Allowance nor Carer Support Payment, and earns £20,000:
- **2024-25.** The maximum amount comes to (£393.45 + £198.31) × 12 = £7,101.12. The carer keeps earned income of £17,942.66, and DWP's reduction of 0.55 × £17,942.66 = £9,868.46 takes the award to nil. The carer has no award, and the model pays no carer premium, where an award would bring £45.60 × 52 = £2,371.20.
- **2025-26.** The maximum amount comes to (£400.14 + £201.68) × 12 = £7,221.84. The carer keeps earned income of £17,947.87, and DWP's reduction of £9,871.33 takes the award to nil, which leaves no award and no carer premium.
### Northern Ireland
`has_uc_award_with_carer_element`, `is_cared_for_by_carer_benefit_recipient`, `severe_disability_premium` and `severe_disability_minimum_guarantee_addition` read no `country`, so the model applies the same rule in Northern Ireland, with the same parameters for the amounts. Northern Ireland's legislation uses the same words:
- [Welfare Reform (Northern Ireland) Order 2015 art. 10](https://www.legislation.gov.uk/nisi/2015/2006/article/10) sets the financial conditions in the words of s.5, and [UC Regs (NI) 2016 reg 17](https://www.legislation.gov.uk/nisr/2016/216/regulation/17) sets the minimum at one penny.
- [UC Regs (NI) 2016 reg 30](https://www.legislation.gov.uk/nisr/2016/216/regulation/30) includes the carer element, and [Sch 4 para 15(2)(b)](https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/15) exempts a non-dependant "in receipt of state pension credit" from the deduction.
- [SR 2016/236 reg 31(7)](https://www.legislation.gov.uk/nisr/2016/236/regulation/31/made) inserted ", or has an award of universal credit which includes the carer element," into [SPC Regs (NI) 2003 Sch 1 para 1](https://www.legislation.gov.uk/nisr/2003/28/schedule/1/paragraph/1)(1)(a)(iii), (b) and (c)(iv), and added para 1(4), which refers to UC Regs (NI) 2016 reg 30. legislation.gov.uk's revised text of para 1 predates that amendment.
- [HB Regs (NI) 2006 Sch 4 para 14(2)(a)(iii)](https://www.legislation.gov.uk/nisr/2006/405/schedule/4/paragraph/14) withholds the premium where a person "has an award of universal credit which includes the carer element under regulation 30 of the Universal Credit Regulations (Northern Ireland) 2016 in respect of caring for him".
- SR 2016/236 regs 26, 28, 35 and 36 insert the same words in Northern Ireland's Income Support, Jobseeker's Allowance, pension-age Housing Benefit and ESA schemes.
`uc_carer_element_carer_test.yaml` adds a Northern Ireland case: a blind son aged 40 with no income, caring for a parent aged 75 on Attendance Allowance at the higher rate, has an award of (£424.90 + £209.34) × 12 = £7,610.88 that includes the carer element, so the Department for Communities includes no addition, which would otherwise come to £86.05 × 52 = £4,474.60. The model reads the Universal Credit amounts from `gov.dwp.universal_credit` and the addition from `gov.dwp.pension_credit.guarantee_credit.severe_disability.addition` in every country.
### The 2022-23 Scottish amount
The Scottish Ministers left two amounts in force on 1 April 2022. SSI 2021/249 Sch 1 para 5(1) still read £37.70, as made, while the Ministers had replaced £37.70 with £38.85 in para 17's table (SSI 2022/52 reg 25(c)(ii)). They set both to £42.75 from 1 April 2023 (SSI 2023/38 reg 20(h) and (i)). In its *Council Tax Reduction in Scotland: 2022-2023* statistics (Table 1), the Scottish Government gives the 2022-23 carer premium as £38.85, the para 17 figure, and the model pays the same amount, reading `gov.dwp.carer_premium.single` at 30 April 2022.
### Which years
- The model reads each year's parameters at 30 April of that year (`policyengine_uk/utils/parameters.py`).
- **Severe disability premium and addition.** DWP added the limb to HB, HB(SPC), IS, JSA, ESA and SPC through SI 2015/1754, from 4 November 2015. The government added it to England's pension-age CTR for schemes from 1 April 2016 (SI 2015/2041 reg 1(2)). The Scottish Ministers added it to Scotland's from 1 April 2016 (SSI 2016/81), had it in the working-age SSI 2012/303 by 1 April 2021, and included it in SSI 2021/249 from its start on 1 April 2022. The Welsh Ministers added it to Wales's for schemes from 1 April 2017 (WSI 2017/46 reg 1(3)). No parameter gates the limb. The carer element parameter starts on 9 April 2016, and the programmes' verified years start at 2019 (Universal Credit) and 2022 (Housing Benefit, Pension Credit, Income Support). Before them the model applies the limb in Welsh pension-age CTR in model year 2016, a year before WSI 2017/46, and in model year 2015 before SI 2015/1754, wherever a hand-built household has a carer-element award.
- **Scottish working-age carer premium.** The model applies limb (c) from model year 2022 and needs an award of at least one penny in every year.
### Reforms
A reform that makes `is_uc_eligible` read Pension Credit, or that makes the award before the cap read it, would cycle through the attribution; the invariants below hold for baseline households and stored awards.
### Interaction with #1966
#1966 (draft) gives Scotland's and Wales's working-age CTR their own applicable amount (`council_tax_reduction_working_age_applicable_amount`), with its own carer count in place of `council_tax_reduction_premiums`, so it needs no subtraction from the shared premiums. Its `council_tax_reduction_working_age_carers` adds the carer element as one carer only when neither the claimant nor a partner has a carer benefit entitlement, with no date gate, and reads a positive award (`uc_carer_element > 0` with `council_tax_reduction_working_age_has_universal_credit`). When merging #1966, count each claimant or partner with `is_entitled_to_carer_benefit` or `receives_uc_carer_element` before applying the same-person cap, as `council_tax_reduction_carer_premium` does, and gate limb (c) on `carer_premium_counts_uc_carer_element`. Its positive award matches this branch's reading in every year from 2022-23.
### Overlap with open branches
This head merges `main` at `557087da1` (merge commit `cdf5fbd91`), which brought #2815. Since #2815, `uc_non_dep_deduction_exempt` reads `uc_receives_attendance_allowance`, which counts armed forces independence payment under head (f) of reg 2's definition of "attendance allowance", the term UC Regs 2013 Sch 4 para 16(2)(d) uses. So the model now exempts the veteran in `test_the_non_dependant_branch_reads_the_award_without_housing_costs` whatever the branch returns, and the branch's result can decide a deduction only for a blind partner (above). `main` still holds no para 15 renter exemption.
Against this head, `git merge-tree --write-tree --name-only` finds:
- `main` (`557087da1`): merges cleanly (this head contains it).
- #2808 (`fix-1971-enhanced-disability`, `6563f73e5`): one textual conflict in `council_tax_reduction_premiums.py`, where both branches add a substitution term to the working-age premiums (this branch the carer premium, that one the enhanced disability premium). `main` merges #2808 cleanly, so this branch causes the conflict. Keep both substitutions when resolving it.
- #2861 (`claude/pensioner-ctr-disability-premiums-9b4amp`, `6e96ffef8`), which merges #2808: the same conflict in `council_tax_reduction_premiums.py`, with the same resolution, and three conflicts that #2861 also has with `main`: `council_tax_reduction_pension_credit.yaml`, `test_council_tax_reduction_pension_credit_properties.py` and `council_tax_reduction_applicable_income.py`.
- #2826 (`87cbc397e`): merges cleanly. At `31139e82`, in the tree merged with `fix-1933-ctr-pensioner-children` (`e8831fb6b`), which #2826 builds on, all 12 property tests (`-n 4`, 156 s) and the 24 cases of the two new YAML files passed; a check with historical Child Tax Credit households stays pending.
- #2007 (`hb-ctr-non-dep-exemptions`, `fde435bd3`): conflicts in `docs/book/programs/gov/dwp/housing-benefit.ipynb` and `policyengine_uk/tests/shard_durations.toml`, both of which #2007 also has with `main`. Its HB and CTR non-dependant exemptions read `universal_credit_pre_benefit_cap` and Pension Credit, as the carer test does. At `31139e82`, in the merged tree, all 12 tests in `test_uc_carer_element_award_properties.py` (`-n 4`, 108 s) and the 24 cases of the two new YAML files passed.
- #1966 (`ctr-working-age-shortfall`, `a013f520a`): conflicts in `test_council_tax_reduction_pension_credit_properties.py`, `test_means_test_income_properties.py` and `council_tax_reduction_pensioner.py`, all three of which #1966 also has with `main`.
- #2017 (`b3e0d76b8`): conflicts in `housing-benefit.ipynb` and `shard_durations.toml`, both of which #2017 also has with `main`. #2017 adds the para 15 renter exemption, `uc_non_dep_deductions_renter_exempt`, which exempts a renter who is blind or receives Attendance Allowance, the DLA care component at the middle or highest rate or the PIP daily living component; it reads `attendance_allowance`, not `uc_receives_attendance_allowance`, so it leaves out a renter on armed forces independence payment, whom head (f) of reg 2's definition brings into para 15(2)(c). In a scratch merge of #2017 into this head (the two conflicts resolved with this head's side), the model deducts nothing in either test's household, whatever the branch returns and with the veteran's exemption supplied as false, and leaves the award at £3,755.10. So when #2017 lands, the counterfactual in `test_the_non_dependant_branch_reads_the_award_without_housing_costs` and the run with the branch's result supplied as false in `test_the_branch_decides_a_blind_partners_deduction` need the law's figure, no deduction.
## Invariants
On generated households under baseline law, `policyengine_uk/tests/test_uc_carer_element_award_properties.py` checks:
1. **No change without a carer element.** In a household where no one has `has_uc_award_with_carer_element` or `receives_uc_carer_element`, the attribution, the severe disability premium and its CTR and pension-age variants, and the addition equal their values with `has_uc_award_with_carer_element` supplied as false, and `council_tax_reduction_carer_premium` equals `carer_premium`.
2. **A carer element never raises the severe disability premium or addition**, and never removes anyone from the cared-for set.
3. **The Scottish carer premium never lowers the carer premium** and differs from `carer_premium` only for a Scottish working-age family.
4. **Bounds.** The Scottish premium comes to a whole number of weekly amounts, at most one per claimant or partner, at most one where partners care for the same person.
5. **The carer test matches the award.** `has_uc_award_with_carer_element` equals `receives_uc_carer_element` for every person. `universal_credit_pre_benefit_cap` comes to more than nil wherever `universal_credit` does and, for every family with a carer element, only where `universal_credit` does. The equality also holds where the simulation stores the award (`test_a_stored_award_is_the_award_and_reads_no_cycle`, both reader orders).
6. **Attribution.** Everyone the attribution counts as cared for meets the Carer's Allowance severe disability test; no household has more people cared for than carers; the attribution never counts a lone carer as cared for.
7. **No cycle.** Every reader, with `universal_credit_pre_benefit_cap`, `universal_credit`, `pension_credit`, `housing_benefit`, `income_support`, `council_tax_reduction` and `household_net_income`, calculates on one simulation in either order, on generated baseline households and where the simulation stores the award.
8. **The cut.** In the non-dependant family's Pension Credit branch the carer test reads the award without housing costs; `test_the_non_dependant_branch_reads_the_award_without_housing_costs` pins the veteran's household above in three request orders, where the branch's result changes no deduction and the model's award matches the law's, and `test_the_branch_decides_a_blind_partners_deduction` pins the blind partner's household, where the branch's result decides the model's deduction.
## Test plan
Runs at `f75f41abc` unless stated.
- [x] YAML tests with hand-worked arithmetic citing the provision, amounts from DWP Benefit and pension rates 2026 to 2027 / SI 2026/148 and SSI 2021/249 Sch 1 paras 5(1) and 17 as amended:
- `policyengine_uk/tests/policy/baseline/household/demographic/uc_carer_element_carer_test.yaml`: 12 cases, 12 passed. The blind carer; a partner inside the benefit unit (couple rate to single rate); a son outside it (addition and pension-age premium); a carer on Carer's Allowance and Universal Credit (one carer); a partner's carer element beside the other partner's allowance (one carer); a carer whose income tapers the award to nil (premium kept); a council-renting carer whose housing costs element keeps an award (premium withheld); a son whose income tapers the award to nil (addition kept); a stored award with no claim (premium withheld); no claim, no award; the executed case (addition £4,474.60, Pension Credit £6,850.60, household net income £44,629.40); and the Northern Ireland son (addition withheld).
- `policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_carer_premium.yaml`: 12 cases, 12 passed. The issue's Scottish carer aged 40 with `care_hours: 35`; 2022 and 2021; English and Welsh controls; the nil award in 2026, 2024 and 2025 (no premium in each); allowance and carer element together; a couple caring for the same person; a Scottish pensioner; a dependant who receives Carer Support Payment (no premium).
- [x] Every YAML file under `policyengine_uk/tests/policy/baseline/` that names the carer test, the attribution, the severe disability premiums, the addition or the Scottish carer premium, every file in `gov/dwp/pension_credit/guarantee_credit/`, and every YAML file the branch adds or changes since `f9fdc636a` (including two that `main` brought in): 29 files, one `policyengine-core test` run each, 439 cases passed, none failed. #2815's three YAML files (`uc_non_dep_deduction_exempt.yaml`, `uc_receives_attendance_allowance.yaml` and `integration/uc_afip_housing_contribution.yaml`): 24 cases passed, none failed.
- [x] `policyengine_uk/tests/test_uc_carer_element_award_properties.py`, 13 tests: 13 passed in one `-n 4` run (76 s), with no expected failures. At the merge with `main` (`cdf5fbd91`), before the changes to the veteran test, the three runs of `test_the_non_dependant_branch_reads_the_award_without_housing_costs` failed at the deduction with the branch's result supplied as false (`assert np.float32(0.0) == 1158.6 ± 0.0011586`), and the other 9 passed.
- `test_issue_households_read_the_carer_element_award` (the reproducer; reads only variables that predate the fix): passed; on `main` (`557087da1`) it fails with `assert np.float32(4474.6) == 0`, the blind carer's premium.
- The three nil-award routes: 3 passed, with no expected-failure marker and no allowlist entry.
- `test_a_stored_award_is_the_award_and_reads_no_cycle`, forward and reverse reader order: 2 passed.
- `test_a_reform_that_abolishes_universal_credit_leaves_no_carer_element_award`: passed.
- `test_the_carer_element_limb_moves_only_its_readers_and_only_one_way` (Hypothesis, invariants 1 to 6) and `test_every_reader_calculates_on_one_simulation_in_any_order` (Hypothesis, invariant 7): passed.
- `test_the_non_dependant_branch_reads_the_award_without_housing_costs` (invariant 8), three request orders: 3 passed.
- `test_the_branch_decides_a_blind_partners_deduction` (invariant 8): passed.
- [x] The Python suites on these readers, one `-n 4` run each: `test_severe_disability_premium_properties.py` 6 passed (125 s), `test_severe_disability_addition_properties.py` 7 passed (230 s), `test_legacy_carer_premium_properties.py` 4 passed (86 s), `test_pension_age_severe_disability_premium_properties.py` 3 passed (62 s), `test_disable_simulated_benefits_carers.py` 18 passed (120 s), `test_legacy_award_readers_properties.py` 20 passed (189 s), `test_council_tax_reduction_severe_disability_family.py` 8 passed (17 s), and #2815's `test_uc_afip_housing_contribution_properties.py` 3 passed (21 s).
- [x] `policyengine_uk/tests/code_health -n 4`: 3,153 passed.
- [x] Mutations, each in a copy of the branch: B3 at `f75f41abc`; B1, B2 and B4 to B7 at `b6b1ce7c`, which differs from `31139e82` only in Scotland's carer premium; and S1 and S2 at `31139e82`:
- B1, the carer test reads the old bound (`uc_award_upper_bound` from `f9fdc636a`, restored, with the claim and eligibility) in place of the award: the three nil-award route tests fail at `has_uc_award_with_carer_element`, and the executed YAML case fails (carer test true); the mutant gives Pension Credit £2,376 and household net income £40,154.80.
- B2, the carer test reads `universal_credit` in place of the award before the cap: 11 of 12 property tests fail with `CycleError` through the benefit cap route; the abolition test passes.
- B3, `uc_non_dep_receives_pension_credit` calculates Pension Credit without the branch: 12 of 13 property tests (all but the abolition test) and 10 of the 12 carer-test YAML cases fail with `CycleError` ("Circular definition detected on formula has_uc_award_with_carer_element@2026") through the non-dependant deduction route.
- B4, the attribution ignores the carer element (`carer = receives`): 6 of the 24 cases in the two new YAML files fail, including the Northern Ireland case.
- B5, the attribution drops the same-person rule: 1 fails, the partners' case.
- B6, the carer test ignores a stored award: 1 fails, the stored award.
- B7, the carer test ignores a neutralized award: the abolition test fails.
- S1, Scotland counts a nil award from 2022-23 to 2024-25 (the old conditions route): 1 fails, 2024 (£2,371.20 instead of £0).
- S2, Scotland counts a nil award in every year (`uc_carer_element_included_for_claimant` in place of the award): 3 fail, 2026 (£2,503.80), 2024 (£2,371.20) and 2025 (£2,412.80).
- At `fff13eda8` (`31139e82` keeps the lines these three change): M4, limb (c) from 2013 (the 2021 case fails); M5, `council_tax_reduction_premiums` drops the carer premium substitution (2 fail); M6, the Scottish premium counts every member (1 fails, the dependant).
- [x] `uvx ruff@0.17.2 format --check .`, `ruff check .`, `ruff check --select F811,F821 policyengine_uk` and `git diff --check 31139e822..HEAD`: clean.
- [ ] Not rerun at this head: the 150-household differential against `main`.
- [x] Changelog fragment `changelog.d/2120.fixed.md`.
## Reproducer
Reproducer: policyengine_uk/tests/test_uc_carer_element_award_properties.py::test_issue_households_read_the_carer_element_award
axiom: TheAxiomFoundation/rulespec-uk#520 queued, with an addendum for the carer's actual award, Scotland's limb (c) by date and Northern Ireland (https://github.com/TheAxiomFoundation/rulespec-uk/issues/520#issuecomment-6615915535)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Generated by Claude Code
…y's own uc_non_dep_receives_pension_credit calculates a non-dependant family's Pension Credit in a branch with every family's housing costs element set to nil. Now that the carer test reads the carer's award, a family whose severe disability addition reads a renter's carer element sees that award without housing costs in the branch, so the branch's Pension Credit can differ from the family's own (the veteran test: £3,936.60 in the branch, nil outside it). The documentation and the formula's comment said the branch preserved the family's entitlement; they now say when it doesn't. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juaristi22
left a comment
There was a problem hiding this comment.
Re-reviewed adopted head f8cba9d544a2c493e6388b374b4739d86e43b54f. COMPLETE — C1 and A1 are resolved; no findings or material evidence gaps.
The legal comparison now applies the blind-renter exemption and distinguishes it from person-specific exemptions. Forced-deduction examples are explicitly labelled counterfactual, with the existing fixture/input qualifications retained. The actual nil-award regression also remains correct.
All 33 focused checks passed: 24 YAML cases, eight targeted Python cases and one final benefit/income diagnostic. They cover the veteran request orders, the new blind-partner case and the nil-award behavior on the matching Core 3.34.1 runtime. Earlier validation is retained as historical evidence, not counted as new execution.
The official exemption text and actual Axiom #520 addendum were checked. This review covers the actual head built on main at 557087da; it does not certify the separately described prospective merge with later main. Approval awaits readiness and applicable exact-head CI.
juaristi22
left a comment
There was a problem hiding this comment.
Approved at f8cba9d544a2c493e6388b374b4739d86e43b54f.
Review status: COMPLETE — no remaining findings or material evidence gaps. The completed review remains valid: the code, description and source evidence are unchanged. Validation retains 33 passing checks at this head: 24 YAML tests, eight Python tests and one final-output diagnostic. No tests were rerun for this readiness-only follow-up.
The PR is now ready for review. All 20 latest CI checks pass at this exact commit. Head, description, human feedback, source-issue evidence and applicable branch rules were refreshed before approval.
Fixes #2120
Fixes #2124
What and why
DWP and councils count Universal Credit carer-element awards, as they count Carer's Allowance and Carer Support Payment, when deciding the premiums and additions below. The model left the awards out.
is_cared_for_by_carer_benefit_recipientattributed only Carer's Allowance and Carer Support Payment.carer_premiumapplied limbs (a) and (b) only. No other scheme's carer premium has limb (c): under HB Regs 2006 Sch 3 para 17, HB(SPC) Sch 3 para 9, IS Sch 2 para 14ZA, England SI 2012/2885 Sch 2 para 9, Wales WSI 2013/3029 Sch 2 para 9 and Sch 7 para 14, Scotland SSI 2012/319 Sch 1 para 10 and the pre-2022 SSI 2012/303 Sch 1 para 14, DWP and councils test entitlement to Carer's Allowance or Carer Support Payment.Changes
has_uc_award_with_carer_element(Person) reads the carer's actual award. It counts a claimant in respect of whom the award includes the carer element (uc_carer_element_included_for_claimant) where the family's award before the benefit cap (universal_credit_pre_benefit_cap) comes to more than nil. Parliament makes it a financial condition of an award that the amount payable reach the prescribed minimum (Welfare Reform Act 2012 s.5(1)(b) and (2)(b)), and DWP sets that minimum at one penny (UC Regs 2013 reg 17). SPC Sch I para 1(4) asks whether "the person has an award of universal credit which includes an amount which is the carer element under regulation 29". So a carer whose award comes to nil, however it gets there, has no award and no longer bars the premium or addition. Where an input or a scenario storesuniversal_creditfor the period, or a reform neutralizes it, the test reads the award itself (receives_uc_carer_element): reading a stored award runs no formula, so it cannot cycle.universal_creditjoinsSUPPLIED_INPUT_VARIABLESfor that check.universal_creditsubtracts the benefit cap reduction, which reads Child Tax Credit, whose income reads Pension Credit, whose addition reads the carer test, so a carer test that readuniversal_creditwould cycle. The award before the cap and the final award agree for a family whose award includes the carer element: DWP exempts that award from the cap (UC Regs 2013 reg 83(1)(j);is_uc_benefit_cap_exempt_specified_benefit), anduc_deductionsleaves at least one penny payable. Invariant 5 checks that agreement.is_cared_for_by_carer_benefit_recipientcounts a carer-element holder as a carer, in the existing attribution order: claimants and partners of the carer's own benefit unit first, then other members, then claimants and partners of other benefit units, eldest unit first. A carer with both Carer's Allowance and a carer element counts once (SSCBA 1992 s.70(7)). Partners caring for the same severely disabled person have one relevant entitlement between them (s.70(7ZA) and (7A)), so where one receives a carer benefit, the other's carer element adds no second carer.council_tax_reduction_carer_premium(BenUnit).council_tax_reduction_premiumsreads it at working age in the same way ascouncil_tax_reduction_severe_disability_premium. Outside Scotland's working-age scheme it equalscarer_premium. In Scotland it counts each claimant or partner entitled to Carer's Allowance or Carer Support Payment (limbs (a) and (b), ascarer_premium) or with an award of at least one penny that includes the carer element (limb (c),receives_uc_carer_element), in every year from 2022-23. It counts each person once (paras 5(2) and 6(1)), and only one of two partners who care for the same person (para 5(3) and (4)). Councils give the carer-element holder priority under para 5(4), which leaves the amount unchanged.gov.local_authorities.scotland.council_tax_reduction.working_age.carer_premium_counts_uc_carer_element: false from 1 April 2013, true from 1 April 2022.severe_disability_premium,pension_age_severe_disability_premium,severe_disability_minimum_guarantee_addition,carer_premiumandcouncil_tax_reduction_premiumsnow describes the limb. The documentation ofuc_non_dep_receives_pension_creditnow says when its branch's Pension Credit can differ from the family's own: where the family's severe disability addition reads a renter's carer element, the branch reads that award without housing costs. A household head who applies alone holds no Universal Credit award of their own in the model, so the head branch ofcouncil_tax_reduction_premiumskeeps its carer test.Three routes to a nil award, and the executed case
Each of these awards comes to nil, so the carer has no award, and the model now pays the premium or addition.
policyengine_uk/tests/test_uc_carer_element_award_properties.pyasserts each, after premise checks that raiseRuntimeError.test_a_non_dependant_deduction_that_takes_the_award_to_nil_leaves_no_award). A carer aged 40, not blind, cares 35 hours a week for a disabled person aged 50 on the PIP daily living component and earns £27,000. The carer and the disabled person rent a home privately, each liable for half of £12,000, and a blind non-dependant aged 30 earning £20,000 lives with them. DWP deducts £96.55 × 12 = £1,158.60 a year for the non-dependant (UC Regs 2013 Sch 4 paras 13 and 16; blindness brings no exemption, and para 15 does not exempt the carer: the carer claims alone, and the Schedule reserves "joint renters" for joint claimants (para 1(2)), so the disabled co-tenant's PIP brings the carer no exemption under para 15(1)(b)). The carer's housing costs element falls to £6,000 − £1,158.60 = £4,841.40 and the maximum amount to £12,452.28, which the taper of 0.55 × £22,959.60 = £12,627.78 exceeds, so the award comes to nil. DWP does not count the disabled person, a joint tenant, as the carer's non-dependant (para 9(2)(d)), and the council does not count the carer as the disabled person's (HB Regs 2006 reg 3(2)(d)). A blind non-dependant does not bar the disabled person's premium (Sch 3 para 14(4)). The model now pays the disabled person the premium of £86.05 × 52 = £4,474.60.test_a_family_that_takes_tax_free_childcare_instead_has_no_award). A blind carer aged 35, earning £60,000, has a child aged 3 in £12,000 of childcare, and the disabled person aged 60 on the PIP daily living component lives in another benefit unit of the household. The family's award would come to £21,458.16 − £20,260.57 = £1,197.59, and Tax-Free Childcare to £2,000, so the family takes no award (forgoes_universal_credit_for_tax_free_childcare). The model now pays the disabled person the premium of £4,474.60.test_small_housing_costs_with_a_work_allowance_leave_no_award). A blind carer aged 35 cares 35 hours a week for a disabled person aged 60 on the PIP daily living component, who lives in another benefit unit of the household and claims no Universal Credit. DWP has determined that the carer has limited capability for work (UC Regs 2013 reg 39(1)(a)), and under reg 41(1A) cannot treat the carer's paid work as a relevant change of circumstances when it decides whether to reassess that determination (reg 41(1)(b)). So the award has a work allowance (reg 22(1)(b)) and the carer element too: DWP puts the LCWRA element in its place only for a claimant who also has limited capability for work-related activity (reg 29(4)). The carer earns £25,000, claims no Carer's Allowance and pays the council £600 a year in rent. After income tax of £2,486.00 and National Insurance of £994.40, the carer keeps earned income of £21,519.60. With a housing costs element of £600, DWP applies the lower work allowance, £427 × 12 = £5,124 (reg 22(2)(b)). DWP's reduction of 0.55 × (£21,519.60 − £5,124) = £9,017.58 exceeds the maximum amount, (£424.90 + £209.34) × 12 + £600 = £8,210.88, so the award comes to nil. The council ignores the blind carer as a resident (HB Regs 2006 Sch 3 para 14(4)(b)), and the model now pays the disabled person the premium of £4,474.60.uc_carer_element_carer_test.yaml, the case "A blind carer whose award comes to nil with a small housing costs element does not bar a pensioner's addition"). The carer of the third route, now the household head, cares for a person aged 75 in another benefit unit who receives Attendance Allowance at the higher rate, £114.60 × 52 = £5,959.20, and £10,000 of State Pension. The carer's award comes to nil as above. DWP ignores the blind carer as a resident (SPC Sch I para 2(2)(b)), and no one has an award including the carer element in respect of caring for the pensioner, so DWP includes the addition, £86.05 × 52 = £4,474.60. The minimum guarantee comes to £238.00 × 52 + £4,474.60 = £16,850.60, and against £10,000 of State Pension, guarantee credit comes to £6,850.60; qualifying income of £192.31 a week falls short of the savings credit threshold of £208.07. Household net income comes to £25,000 + £10,000 + £5,959.20 + £6,850.60 + £200 Winter Fuel Payment + £100 Household Energy Payment − £2,486.00 − £994.40 = £44,629.40. Counting the carer would take the addition away and leave Pension Credit at £2,376.00 and household net income at £40,154.80; the model now gives £6,850.60 and £44,629.40.The cycle and where the model cuts it
The carer test reads the award, and three routes lead from the award back to the carer test:
universal_credit_pre_benefit_cap→uc_maximum_amount→uc_housing_costs_element→uc_non_dep_deductions→uc_individual_non_dep_deduction→uc_individual_non_dep_deduction_eligible→uc_non_dep_deduction_exempt→uc_non_dep_receives_pension_credit→pension_credit→ … →severe_disability_minimum_guarantee_addition→is_cared_for_by_carer_benefit_recipient→has_uc_award_with_carer_element.forgoes_universal_credit_for_tax_free_childcarereadsuc_maximum_amountanduc_income_reduction, and so the same housing costs element.universal_credit→uc_benefit_cap_reduction_after_floor→uc_benefit_cap_reduction→benefit_cap_welfare_benefits→child_tax_credit→ctc_entitlement→child_tax_credit_pre_minimum→tax_credits_reduction→tax_credits_applicable_income→pension_credit.uc_non_dep_receives_pension_creditalready calculates the non-dependant family's Pension Credit in a branch (simulation.get_branch) withuc_housing_costs_elementsupplied as nil for every family. In policyengine-core 3.34.1, whichuv.lockpins,_check_for_cyclecompares only the stack frames whosebranch_namematches the calculating simulation's, and in the branch the housing costs element reads no formula. So the branch keeps a carer test that reads the award before the cap from cycling through the first two routes: in the branch, the test reads the award without housing costs. The branch does not cut the third route, which cycles inside the branch, so the carer test reads the award before the cap rather thanuniversal_credit.The branch's result decides only the exemption in
uc_non_dep_deduction_exempt; nothing else readsuc_non_dep_receives_pension_credit. The attribution can change that exemption only through the Pension Credit addition of the non-dependant's own family, which then gets Pension Credit with the addition and none without it (uc_non_dep_receives_pension_creditreadspension_creditfor the whole family). The addition needs a claimant or partner with a qualifying benefit in SPC Sch I para 1(1), and the model reads the list fromgov.dwp.pension_credit.guarantee_credit.severe_disability.relevant_benefits: Attendance Allowance, the DLA care component at the middle or highest rate, the PIP daily living component and armed forces independence payment.uc_non_dep_deduction_exemptexempts everyone who receives one of the four in their own right: the DLA care component under UC Regs 2013 Sch 4 para 16(2)(c), the PIP daily living component under para 16(2)(e), and Attendance Allowance and armed forces independence payment under para 16(2)(d). Para 16(2)(d) uses "attendance allowance" as reg 2 defines it, with armed forces independence payment at head (f) (uc_receives_attendance_allowance). So the branch's result can change the model's deduction only for a member of that family who receives none of the four and has no other exemption: under head (c) of SPC Sch I para 1(1), a blind partner of a claimant who receives one. Para 16(2) lists no blindness. Where the branch's Pension Credit and the family's own differ, the model then reads that partner's exemption from the counterfactual award.DWP treats those households differently from the model. The family gets the addition under head (c) only if "no person who has attained the age of 18 is normally residing with the partners, nor are the partners normally residing with such a person, other than a person to whom paragraph 2 applies" (para 1(1)(c)(iii)), and the renter lives with them. DWP ignores, under para 2(2), a person who receives a qualifying benefit (head (a)) or whom a consultant ophthalmologist has certified as severely sight impaired or blind (head (b)). Under UC Sch 4 para 15(1)(a), DWP makes no para 13 deduction at all for a single renter to whom para 15(2) applies. Para 15(2) lists a blind person (a), the DLA care component at the middle or highest rate (b), attendance allowance (c), which reg 2's head (f) extends to armed forces independence payment, the PIP daily living component (d) and the Scottish payments ((bb), (ca) and (da)). So wherever DWP ignores a single renter under para 2(2)(a) or (b), it deducts nothing for any non-dependant, whatever the non-dependant's Pension Credit. A couple who claim jointly both live with the partners, so DWP must ignore both, and para 15(1)(b) then exempts them through either. Two questions stay open. One concerns a renter whom DWP ignores only under heads (c) to (f) of para 2(2) (certified blind until up to 28 weeks earlier, engaged by a charity to care, that carer's partner, or a child or qualifying young person), whom para 15(2) does not list. The other concerns any person under a sub-paragraph of para 2 after (2), which we haven't quoted. The model ignores a resident who is blind, receives a qualifying benefit or counts as a qualifying young person (
is_counted_resident_for_severe_disability_addition), so in the model too the addition needs such a renter. The model holds no para 15 exemption, so it deducts for the blind partner unless the branch's result exempts the partner.test_the_non_dependant_branch_reads_the_award_without_housing_costspins the branch's reading, whichever ofuniversal_credit,pension_creditand the carer test the simulation requests first. A blind carer aged 40 earning £20,000 rents from the council at £6,000 a year as household head and cares for a veteran aged 70 in another benefit unit, who receives armed forces independence payment and £13,000 of State Pension. The carer's award comes to (£424.90 + £209.34) × 12 + £6,000 − 0.55 × £17,919.60 = £3,755.10, which includes the carer element, so the veteran gets no addition. The veteran keeps £12,914.00 after £86.00 of income tax, which exceeds the standard minimum guarantee of £238.00 × 52 = £12,376.00, so the veteran gets no Pension Credit. In the branch, without housing costs, the carer's award comes to nil, the veteran gets the addition and Pension Credit of (£238.00 + £86.05) × 52 − £12,914.00 = £3,936.60, and the branch returns true. When the test supplies the branch's result as false, its value in law, the model still exempts the veteran through armed forces independence payment, deducts nothing, and leaves the award at £3,755.10 with the carer element and the veteran's Pension Credit at nil. DWP deducts nothing for this household either, on two grounds: para 15(1)(a) and (2)(a) exempt the carer, a blind single renter, from every deduction, and para 16(2)(d), read with head (f) of reg 2's definition of "attendance allowance", exempts the veteran. The model holds the second ground but not the first, so the model's award and the law's agree. The test also runs a counterfactual that neither the law nor the model gives this household. When the test supplies the veteran's exemption as false, the model deducts £96.55 × 12 = £1,158.60 and leaves £2,596.50. That award still includes the carer element, so even a deduction leaves the carer test and the veteran's nil Pension Credit unchanged.test_the_branch_decides_a_blind_partners_deductionpins a household where the branch's result decides the model's deduction. The veteran now has £21,000 of State Pension and a blind partner aged 68 who receives no disability benefit. After income tax of (£21,000 − £12,570) × 0.20 − £1,260 × 0.20 = £1,434.00, with the partner's marriage allowance, the couple keep £19,566.00, which exceeds the couple's standard minimum guarantee of £363.25 × 52 = £18,889.00, so they get no Pension Credit. In the branch, head (c) gives them the addition and Pension Credit of (£363.25 + £86.05) × 52 − £19,566.00 = £3,797.60, so the branch returns true, and the model exempts the partner, deducts nothing and leaves the carer's award at £3,755.10. When the test supplies the branch's result as false, its value in law, the model deducts £1,158.60 for the partner and leaves £2,596.50. DWP deducts nothing, because para 15(1)(a) and (2)(a) exempt the carer, so the model's result agrees with the law's through the branch, not through para 15.Scotland's definition by date
Before the scheme started on 1 April 2022, the Scottish Ministers inserted into SSI 2021/249 reg 4(1) (SSI 2022/52 reg 3(b)):
From 1 April 2025, they substituted (SSI 2025/24 reg 8):
and inserted reg 10A (reg 9):
UC Claims and Payments Regs 2013 reg 32A(1):
In its policy note to SSI 2025/24, the Scottish Government records the 2022 intention:
and describes reg 10A as:
From 2022-23 to 2024-25 the Scottish Ministers' definition takes in an award that exists with a value of zero, and in its note the Scottish Government confines that case to a sanction. Earnings that take the amount payable below one penny fail the s.5 financial condition, so DWP makes no award or entitlement to the award ceases, and no award remains to have a value of zero. The Scottish Ministers added reg 10A(b) in 2025 to bring part of that case in. So the model reads limb (c) from the positive award (
receives_uc_carer_element) in every year from 2022-23. A council could still read the 2022 definition to take in an award that earnings end, for its last assessment period and any reclaim months from 2022-23 to 2024-25. The model cannot tell that award from a first claim, on which DWP makes no award (reg 32A(1)(a)). The model has no input for a sanction or a reg 32A reclaim, so it pays no premium for reg 10A's awards, nor for a sanctioned nil award before 2025.For example, take a Scottish carer aged 40 who cares 35 hours a week, claims neither Carer's Allowance nor Carer Support Payment, and earns £20,000:
Northern Ireland
has_uc_award_with_carer_element,is_cared_for_by_carer_benefit_recipient,severe_disability_premiumandsevere_disability_minimum_guarantee_additionread nocountry, so the model applies the same rule in Northern Ireland, with the same parameters for the amounts. Northern Ireland's legislation uses the same words:uc_carer_element_carer_test.yamladds a Northern Ireland case: a blind son aged 40 with no income, caring for a parent aged 75 on Attendance Allowance at the higher rate, has an award of (£424.90 + £209.34) × 12 = £7,610.88 that includes the carer element, so the Department for Communities includes no addition, which would otherwise come to £86.05 × 52 = £4,474.60. The model reads the Universal Credit amounts fromgov.dwp.universal_creditand the addition fromgov.dwp.pension_credit.guarantee_credit.severe_disability.additionin every country.The 2022-23 Scottish amount
The Scottish Ministers left two amounts in force on 1 April 2022. SSI 2021/249 Sch 1 para 5(1) still read £37.70, as made, while the Ministers had replaced £37.70 with £38.85 in para 17's table (SSI 2022/52 reg 25(c)(ii)). They set both to £42.75 from 1 April 2023 (SSI 2023/38 reg 20(h) and (i)). In its Council Tax Reduction in Scotland: 2022-2023 statistics (Table 1), the Scottish Government gives the 2022-23 carer premium as £38.85, the para 17 figure, and the model pays the same amount, reading
gov.dwp.carer_premium.singleat 30 April 2022.Which years
policyengine_uk/utils/parameters.py).Reforms
A reform that makes
is_uc_eligibleread Pension Credit, or that makes the award before the cap read it, would cycle through the attribution; the invariants below hold for baseline households and stored awards.Interaction with #1966
#1966 (draft) gives Scotland's and Wales's working-age CTR their own applicable amount (
council_tax_reduction_working_age_applicable_amount), with its own carer count in place ofcouncil_tax_reduction_premiums, so it needs no subtraction from the shared premiums. Itscouncil_tax_reduction_working_age_carersadds the carer element as one carer only when neither the claimant nor a partner has a carer benefit entitlement, with no date gate, and reads a positive award (uc_carer_element > 0withcouncil_tax_reduction_working_age_has_universal_credit). When merging #1966, count each claimant or partner withis_entitled_to_carer_benefitorreceives_uc_carer_elementbefore applying the same-person cap, ascouncil_tax_reduction_carer_premiumdoes, and gate limb (c) oncarer_premium_counts_uc_carer_element. Its positive award matches this branch's reading in every year from 2022-23.Overlap with open branches
This branch merges
mainat557087da1(cdf5fbd91), which brought #2815. Since #2815,uc_non_dep_deduction_exemptreadsuc_receives_attendance_allowance, which counts armed forces independence payment under head (f) of reg 2's definition of "attendance allowance", the term UC Regs 2013 Sch 4 para 16(2)(d) uses. So the model now exempts the veteran intest_the_non_dependant_branch_reads_the_award_without_housing_costswhatever the branch returns, and the branch's result can decide a deduction only for a blind partner (above).mainstill holds no para 15 renter exemption.Against this head,
git merge-tree --write-tree --name-onlyfinds:main(5c7744144): merges cleanly.fix-1971-enhanced-disability,6563f73e5): one textual conflict incouncil_tax_reduction_premiums.py, where both branches add a substitution term to the working-age premiums (this branch the carer premium, that one the enhanced disability premium).mainmerges Count enhanced PIP daily living and AFIP for the enhanced premium #2808 cleanly, so this branch causes the conflict. Keep both substitutions when resolving it.claude/pensioner-ctr-disability-premiums-9b4amp,254fac3c2), which merges Count enhanced PIP daily living and AFIP for the enhanced premium #2808: the same conflict incouncil_tax_reduction_premiums.py, with the same resolution.87cbc397e): merges cleanly. At31139e82, in the tree merged withfix-1933-ctr-pensioner-children(e8831fb6b), which Add pensioner CTR child amounts and uncap Scotland's tariff income #2826 builds on, all 12 property tests (-n 4, 156 s) and the 24 cases of the two new YAML files passed; a check with historical Child Tax Credit households stays pending.hb-ctr-non-dep-exemptions,fde435bd3): conflicts indocs/book/programs/gov/dwp/housing-benefit.ipynbandpolicyengine_uk/tests/shard_durations.toml, both of which Fix HB and national CTR non-dependant deductions #2007 also has withmain. Its HB and CTR non-dependant exemptions readuniversal_credit_pre_benefit_capand Pension Credit, as the carer test does. At31139e82, in the merged tree, all 12 tests intest_uc_carer_element_award_properties.py(-n 4, 108 s) and the 24 cases of the two new YAML files passed.ctr-working-age-shortfall,a013f520a): conflicts intest_council_tax_reduction_pension_credit_properties.py,test_means_test_income_properties.pyandcouncil_tax_reduction_pensioner.py, all three of which Give Scotland and Wales working-age CTR their own rules #1966 also has withmain.b3e0d76b8): conflicts inhousing-benefit.ipynbandshard_durations.toml, both of which Charge non-dependant deductions within the claimant's benefit unit #2017 also has withmain. Charge non-dependant deductions within the claimant's benefit unit #2017 adds the para 15 renter exemption,uc_non_dep_deductions_renter_exempt, which exempts a renter who is blind or receives Attendance Allowance, the DLA care component at the middle or highest rate or the PIP daily living component. It readsattendance_allowance, notuc_receives_attendance_allowance, so it leaves out a renter on armed forces independence payment, whom head (f) of reg 2's definition brings into para 15(2)(c). In a trial merge of Charge non-dependant deductions within the claimant's benefit unit #2017 into this head, resolving the two conflicts with this head's side, the model deducts nothing in either test's household and leaves the award at £3,755.10, whatever the branch returns and even when the test supplies the veteran's exemption as false. So when Charge non-dependant deductions within the claimant's benefit unit #2017 lands, the counterfactual intest_the_non_dependant_branch_reads_the_award_without_housing_costsand the run with the branch's result supplied as false intest_the_branch_decides_a_blind_partners_deductionneed the law's figure, no deduction.Invariants
On generated households under baseline law,
policyengine_uk/tests/test_uc_carer_element_award_properties.pychecks:has_uc_award_with_carer_elementorreceives_uc_carer_element, the attribution, the severe disability premium and its CTR and pension-age variants, and the addition equal their values withhas_uc_award_with_carer_elementsupplied as false, andcouncil_tax_reduction_carer_premiumequalscarer_premium.carer_premiumonly for a Scottish working-age family.has_uc_award_with_carer_elementequalsreceives_uc_carer_elementfor every person.universal_credit_pre_benefit_capcomes to more than nil whereveruniversal_creditdoes and, for every family with a carer element, only whereuniversal_creditdoes. The equality also holds where the simulation stores the award (test_a_stored_award_is_the_award_and_reads_no_cycle, both reader orders).universal_credit_pre_benefit_cap,universal_credit,pension_credit,housing_benefit,income_support,council_tax_reductionandhousehold_net_income, calculates on one simulation in either order, on generated baseline households and where the simulation stores the award.test_the_non_dependant_branch_reads_the_award_without_housing_costspins the veteran's household above in three request orders, where the branch's result changes no deduction and the model's award matches the law's, andtest_the_branch_decides_a_blind_partners_deductionpins the blind partner's household, where the branch's result decides the model's deduction.Test plan
Runs at
f75f41abcunless stated.f8cba9d54then changes only the documentation and a comment inuc_non_dep_receives_pension_credit.policyengine_uk/tests/policy/baseline/household/demographic/uc_carer_element_carer_test.yaml: 12 cases, 12 passed. The blind carer; a partner inside the benefit unit (couple rate to single rate); a son outside it (addition and pension-age premium); a carer on Carer's Allowance and Universal Credit (one carer); a partner's carer element beside the other partner's allowance (one carer); a carer whose income tapers the award to nil (premium kept); a council-renting carer whose housing costs element keeps an award (premium withheld); a son whose income tapers the award to nil (addition kept); a stored award with no claim (premium withheld); no claim, no award; the executed case (addition £4,474.60, Pension Credit £6,850.60, household net income £44,629.40); and the Northern Ireland son (addition withheld).policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_carer_premium.yaml: 12 cases, 12 passed. The issue's Scottish carer aged 40 withcare_hours: 35; 2022 and 2021; English and Welsh controls; the nil award in 2026, 2024 and 2025 (no premium in each); allowance and carer element together; a couple caring for the same person; a Scottish pensioner; a dependant who receives Carer Support Payment (no premium).policyengine_uk/tests/policy/baseline/that names the carer test, the attribution, the severe disability premiums, the addition or the Scottish carer premium, every file ingov/dwp/pension_credit/guarantee_credit/, and every YAML file the branch adds or changes sincef9fdc636a(including two thatmainbrought in): 29 files, onepolicyengine-core testrun each, 439 cases passed, none failed. Count AFIP as attendance allowance in UC housing cost contributions #2815's three YAML files (uc_non_dep_deduction_exempt.yaml,uc_receives_attendance_allowance.yamlandintegration/uc_afip_housing_contribution.yaml): 24 cases passed, none failed.policyengine_uk/tests/test_uc_carer_element_award_properties.py, 13 tests: 13 passed in one-n 4run (76 s), with no expected failures. At the merge withmain(cdf5fbd91), before the changes to the veteran test, the three runs oftest_the_non_dependant_branch_reads_the_award_without_housing_costsfailed at the deduction once the test supplied the branch's result as false (assert np.float32(0.0) == 1158.6 ± 0.0011586), and the other 9 passed.test_issue_households_read_the_carer_element_award(the reproducer; reads only variables that predate the fix): passed; onmain(557087da1) it fails withassert np.float32(4474.6) == 0, the blind carer's premium.test_a_stored_award_is_the_award_and_reads_no_cycle, forward and reverse reader order: 2 passed.test_a_reform_that_abolishes_universal_credit_leaves_no_carer_element_award: passed.test_the_carer_element_limb_moves_only_its_readers_and_only_one_way(Hypothesis, invariants 1 to 6) andtest_every_reader_calculates_on_one_simulation_in_any_order(Hypothesis, invariant 7): passed.test_the_non_dependant_branch_reads_the_award_without_housing_costs(invariant 8), three request orders: 3 passed.test_the_branch_decides_a_blind_partners_deduction(invariant 8): passed.-n 4run each:test_severe_disability_premium_properties.py6 passed (125 s),test_severe_disability_addition_properties.py7 passed (230 s),test_legacy_carer_premium_properties.py4 passed (86 s),test_pension_age_severe_disability_premium_properties.py3 passed (62 s),test_disable_simulated_benefits_carers.py18 passed (120 s),test_legacy_award_readers_properties.py20 passed (189 s),test_council_tax_reduction_severe_disability_family.py8 passed (17 s), and Count AFIP as attendance allowance in UC housing cost contributions #2815'stest_uc_afip_housing_contribution_properties.py3 passed (21 s).policyengine_uk/tests/code_health -n 4: 3,153 passed.f75f41abc; B1, B2 and B4 to B7 atb6b1ce7c, which differs from31139e82only in Scotland's carer premium; and S1 and S2 at31139e82:uc_award_upper_boundfromf9fdc636a, restored, with the claim and eligibility) in place of the award: the three nil-award route tests fail athas_uc_award_with_carer_element, and the executed YAML case fails (carer test true); the mutant gives Pension Credit £2,376 and household net income £40,154.80.universal_creditin place of the award before the cap: 11 of 12 property tests fail withCycleErrorthrough the benefit cap route; the abolition test passes.uc_non_dep_receives_pension_creditcalculates Pension Credit without the branch: 12 of 13 property tests (all but the abolition test) and 10 of the 12 carer-test YAML cases fail withCycleError("Circular definition detected on formula has_uc_award_with_carer_element@2026") through the non-dependant deduction route.carer = receives): 6 of the 24 cases in the two new YAML files fail, including the Northern Ireland case.uc_carer_element_included_for_claimantin place of the award): 3 fail, 2026 (£2,503.80), 2024 (£2,371.20) and 2025 (£2,412.80).fff13eda8(31139e82keeps the lines these three change): M4, limb (c) from 2013 (the 2021 case fails); M5,council_tax_reduction_premiumsdrops the carer premium substitution (2 fail); M6, the Scottish premium counts every member (1 fails, the dependant).uvx ruff@0.17.2 format --check .,ruff check .,ruff check --select F811,F821 policyengine_ukandgit diff --check 31139e822..HEAD: clean.main..github/check_fix_pr.pyon this title and body atf8cba9d54, aspr_fix_evidence.yamlruns it: PASS againstmainat5c7744144(valid reproducer evidence, 3 changed executable tests).changelog.d/2120.fixed.md.Reproducer
Reproducer: policyengine_uk/tests/test_uc_carer_element_award_properties.py::test_issue_households_read_the_carer_element_award
axiom: TheAxiomFoundation/rulespec-uk#520 queued, with an addendum for the carer's actual award, Scotland's limb (c) by date and Northern Ireland (TheAxiomFoundation/rulespec-uk#520 (comment))
🤖 Generated with Claude Code