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
Standard reform costings (change in gov_balance)
The report suppresses a reform's costing and target change in these years, for the reasons below (
Standard reforms: change in each reform's target
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. 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 |
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. 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 partner or claimant with a qualifying benefit in SPC Sch I para 1(1)(a)(i), and the model counts Attendance Allowance, the DLA care component at the middle or highest rate, the PIP daily living component and armed forces independence payment (gov.dwp.pension_credit.guarantee_credit.severe_disability.relevant_benefits).uc_non_dep_deduction_exemptalready exempts everyone who receives one of the first three, as UC Regs 2013 Sch 4 para 16(2)(c), (d) and (e) do, but not armed forces independence payment, which para 16(2) does not list. So the cut can change the deduction only for a member of that family with no other exemption: someone who receives armed forces independence payment and none of the other benefits, or, under head (c) of para 1(1), a blind partner who receives none. The model can then exempt a non-dependant whom DWP would not exempt, or the reverse.test_the_non_dependant_branch_reads_the_award_without_housing_costspins one such case, 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 and, with £250 a week against £238.00, no Pension Credit. In the branch, without housing costs, the carer's award comes to nil, the veteran gets Pension Credit, and the model exempts the veteran and deducts nothing. Under the law, DWP deducts £1,158.60 and leaves an award of £2,596.50, which still includes the carer element. The test asserts both sets of figures, the second with the exemption supplied at its value in law.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
Against this head,
git merge-tree --write-treefinds:main(9b456bda6): merges cleanly (git merge-tree --write-tree --name-only HEAD origin/mainexits 0).fix-1971-enhanced-disability,6563f73e): 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). Keep both substitutions when resolving the conflict.claude/pensioner-ctr-disability-premiums-9b4amp,9ef585def), which merges Count enhanced PIP daily living and AFIP for the enhanced premium #2808: the same conflict, with the same resolution.fix-1933-ctr-pensioner-children(e8831fb6b), which Add child amounts and tariff income to pensioner CTR #2826 (06e51a8ab) builds on: both merge cleanly. In the tree merged withe8831fb6b, all 12 property tests (-n 4, 156 s) and the 24 cases of the two new YAML files pass; a check with historical Child Tax Credit households stays pending.hb-ctr-non-dep-exemptions,fde435bd): merges cleanly. Its HB and CTR non-dependant exemptions readuniversal_credit_pre_benefit_capand Pension Credit, as the carer test now does. 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 pass.ctr-working-age-shortfall,a013f520a): merges cleanly.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 armed forces independence payment case above in three request orders.Test plan
Runs at
31139e82unless stated.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.policyengine_uk/tests/test_uc_carer_element_award_properties.py, 12 tests: 12 passed in one-n 4run (54 s), with no expected failures.test_issue_households_read_the_carer_element_award(the reproducer; reads only variables that predate the fix): passed; onmain(9b456bda6) 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.policyengine_uk/tests/code_health -n 4: 3,097 passed.b6b1ce7c, 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: 11 of 12 property tests and 10 of the 12 carer-test YAML cases fail withCycleErrorthrough 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: clean.mainand the Python suites on these readers (test_severe_disability_premium_properties.py,test_severe_disability_addition_properties.py,test_legacy_carer_premium_properties.py,test_pension_age_severe_disability_premium_properties.py,test_disable_simulated_benefits_carers.py,test_legacy_award_readers_properties.py,test_council_tax_reduction_severe_disability_family.py); CI runs the suites.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