Repository navigation
Description
What the law says
Merton and Kingston upon Thames reproduce paragraph 37 of the Default Scheme (SI 2012/2886 Sch para 37) in their 2026-27 schemes. Merton writes in para 37 of its scheme (page 69):
37.—(1) In determining the income of an applicant— (a) who has, or (b) who (jointly with his partner) has, an award of universal credit the authority must, subject to the following provisions of this paragraph, use the calculation or estimate of the amount of the income of the applicant, or the applicant and his partner jointly (as the case may be), made by the Secretary of State for the purpose of determining the award of universal credit.
…
(3) The authority may only adjust the amount of the income as adjusted in accordance with subparagraph (2) so far as necessary to take into account— (a) the amount of the award of universal credit, determined in accordance with sub-paragraph (3); …
(4) The amount for the award of universal credit to be taken into account for the purposes of sub-paragraph (3)(a) is to be determined by multiplying the amount of the award of universal credit by 12 and dividing the product by 52.
Kingston upon Thames uses the same words (scheme, page 45). Newham adapts the paragraph and counts "the amount of entitlement to universal credit" (para 37(3)(a) and (4), scheme, pages 90 and 91). For Westminster we found only a summary (Council Tax Support scheme for 2026/27). On page 2 Westminster writes that "The Council Tax Reduction Schemes (Default Scheme) Regulations 2012 form the basis of Westminster's local working age reduction scheme", and on page 3 that the council compares the maximum rate of Universal Credit "to the actual universal credit award plus any other income and earnings received."
Parliament sets the amount of an award as the maximum amount less the income amounts (Welfare Reform Act 2012 s 8(1)). DWP then cuts that award for the benefit cap (UC Regs 2013 reg 81(1)). Once DWP has set the award, the Secretary of State may pay part of it to the claimant's creditors, under the Claims and Payments Regulations 2013 (SI 2013/380) Sch 6:
2.—(1) The Secretary of State may deduct an amount from a claimant's award of universal credit and pay that amount to a third party in accordance with the following provisions of this Schedule to discharge (in whole or part) a liability of the claimant to that third party.
The Secretary of State may not make a deduction that would "reduce the amount payable to the claimant to less than one penny" (para 3(1)(a)). In para 11(5) the Secretary of State treats the award and the amount payable as two figures: "where the claimant has an award of universal credit but the amount payable to the claimant in relation to that assessment period is insufficient to enable such a deduction to be made". DWP offsets an advance "against the sum payable to A under the award of benefit" (SI 2013/383 reg 10) and recovers overpayments "by deduction from the benefits … which are payable" (SI 2013/384 reg 10(1)).
So Merton, Kingston upon Thames and Newham count the award after the benefit cap and before deductions for debts. Westminster names the award and the Default Scheme in its summary, and we read it the same way. Oxford City Council counts the award the same way in its Appendix 3, where it adds net earned income "to the amount of Universal Credit awarded", for applicants "awarded Universal Credit or [who] would have been awarded Universal Credit but for any deductions (such as sanctions) or other adjustments to the award".
What the model does
legacy_council_tax_reduction (policyengine_uk/variables/gov/local_authorities/council_tax_reduction/_legacy.py) runs the working-age schemes of all four councils (merton_council_tax_reduction.py, kingston_upon_thames_council_tax_reduction.py, newham_council_tax_reduction.py, westminster_council_tax_reduction.py). For an applicant with an award it counts (lines 50 to 54):
uc_applicable_income = (
benunit("uc_earned_income_before_work_allowance", period)
+ benunit("uc_unearned_income", period)
+ universal_credit
)universal_credit (policyengine_uk/variables/gov/dwp/universal_credit/universal_credit.py) subtracts both the benefit cap and the deductions:
return max_(uc_max_entitlement - (benefit_cap_reduction + deductions), 0)where deductions reads uc_deductions. The model documents that variable as "Money deducted from this benefit unit's Universal Credit award to repay debts: advance repayments, government debt (benefit and tax credit overpayments) and third party deductions." So for each £1 DWP deducts for a debt, the model lowers the applicant's income in the council's assessment by £1 and raises the reduction by the council's withdrawal rate: 20p in Merton, Kingston upon Thames and Westminster, and 25p in Newham. If a user reforms the deductions, the model moves these councils' reductions too.
Example
We ran policyengine-uk 2da212abc for a single person aged 35 in each council in 2026. They earn £8,000, rent from the council at £7,800 a year and owe council tax of £2,600. DWP's maximum amount comes to £12,898.80 and its income reduction to £4,400, so the award reaches £8,498.80. We ran each case once with no deduction and once with uc_deductions of £600 a year (£50 a month).
| Council | Deduction | universal_credit |
Model reduction | Scheme reduction |
|---|---|---|---|---|
| Merton | £0 | £8,498.80 | £1,880.00 | £1,880.00 |
| Merton | £600 | £7,898.80 | £2,000.00 | £1,880.00 |
| Kingston upon Thames | £0 | £8,498.80 | £1,880.00 | £1,880.00 |
| Kingston upon Thames | £600 | £7,898.80 | £2,000.00 | £1,880.00 |
| Newham | £0 | £8,498.80 | £920.00 | £920.00 |
| Newham | £600 | £7,898.80 | £1,070.00 | £920.00 |
| Westminster | £0 | £8,498.80 | £1,880.00 | £1,880.00 |
| Westminster | £600 | £7,898.80 | £2,000.00 | £1,880.00 |
Worked by hand, the model's excess income falls from 8,000 + 8,498.80 − 12,898.80 = £3,600 to £3,000 with the deduction. The model then gives 2,600 − 20% × 3,000 = £2,000 in Merton, Kingston upon Thames and Westminster, and 70% × 2,600 − 25% × 3,000 = £1,070 in Newham. Under their schemes the councils keep the excess at £3,600 and award £1,880 and £920.
The model caps ordinary deductions at 15% of the standard allowance (gov.dwp.universal_credit.deductions.cap, which follows the rate DWP has applied since 30 April 2025), and uc_deduction_rate can add an above-cap excess. For a single claimant aged 25 or over in 2026-27 the cap comes to 15% × £424.90 × 12 = £764.82 a year. For a deduction at the cap, the model over-awards £152.96 a year in Merton, Kingston upon Thames and Westminster and £191.21 in Newham, and more where it adds an excess.
What to change
- In
legacy_council_tax_reduction, countuniversal_credit + uc_deductions: the award after the benefit cap and before deductions. On the branch of PR Assess Oxford Universal Credit applicants on Appendix 3 income #2794,oxford_council_tax_reduction_universal_credit_incomealready counts the Oxford award that way, and_legacy.pystays as it is. - Leave the route test (
applicant_has_universal_credit) to draft PR Treat income derived from capital as capital in the legacy means tests #1995, which redefines it for awards DWP cuts to nil through the benefit cap or deductions. - Add YAML cases for each council with and without a deduction, and a property test: while the award exceeds nil, the four councils' reductions do not change with
uc_deductions. - Cite SI 2013/380 Sch 6 paras 2(1), 3(1)(a) and 11(5) beside the Default Scheme citation in
_legacy.py.
If Axiom encodes Default Scheme para 37 and SI 2013/380 Sch 6, a differential test can check this route against Axiom's encoding.
Related: #2520, #2794, #1995, #2739.
🤖 Generated with Claude Code
Activity
MaxGhenis commentedon Nov 2, 2026
Ready for hub review
Head tested:
afeddde02e9f861ccd9df3587b7f53dbfedc3606onfix-2799-ctr-uc-award, detached checkout. The branch tip has since moved to21bc1163b214fa3cda4756030cd5d7684965937c(two later commits:5fff4ca7"Add pension, savings, non-dependant, benefit cap and floor CTR deduction cases" and21bc1163"Name the actors in the CTR deduction YAML comments"). As briefed, I testedafedddeonly; nothing below covers those two commits.Set-up: cloud VM, 4 vCPU, 16 GB.
uv sync --frozen --extra dev.HUGGING_FACE_TOKENandPOLICYENGINE_UK_DEFAULT_DATASETunset. All pytest runs used-n 4; no memory trouble. Wall time is measured around the wholeuv runcommand.uv run pytest -q -o xfail_strict=true -n 4 policyengine_uk/tests/test_benefit_cap_and_ctr_pension_age_properties.pyuv run policyengine-core test policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml -c policyengine_uk(head)uv run pytest -q -o xfail_strict=true -n 4 policyengine_uk/tests/test_council_tax_reduction_uc_deductions_properties.py(head)_legacy.pyfrom2da212ab_legacy.pyfrom2da212abprecapmutantprecapmutantunearnedmutantunearnedmutantuv run python /tmp/witness_batch.py(head)precapmutantunearnedmutantuv run policyengine-core test policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction -c policyengine_ukEvery run also printed one
PytestAssertRewriteWarning(anyio) warning. No test skipped for want of a dataset; the YAML runs printed the header linemicrosimulation data (optional): skip on none.Failures at the head
None. Entries 1, 2, 3 and 7 passed.
Entry 4: base comparison (
_legacy.pyfrom2da212abcf2086337fc088a4a1236f4ae7b6af63)4a, YAML: 6 of 10 cases failed. Each FAILED line printed the node
policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml::with an empty case name; the case names and assertions come from the output above the summary:The four passing cases were the four "with no deduction" cases.
4b, Python:
policyengine_uk/tests/test_council_tax_reduction_uc_deductions_properties.py::test_four_councils_count_the_universal_credit_award_before_deductionsfailed:After
git checkout HEAD -- .../_legacy.py,git status --porcelainprinted nothing.Entry 5: mutants
Applied with
/tmp/select_mutation.pyexactly as given in the brief.precap(sha2562a147274f2d22277e66637b6d7b966ce0185ae7d06af6482057a332370fd72a3): survived. Entry 2 passed 10/10 and entry 3 passed 1/1. No named test failed.unearned(sha256111864d25a186516d3c0b23f1ff146e4ed7f8bb706489cb364ce659a604335c6): survived. Entry 2 passed 10/10 and entry 3 passed 1/1. No named test failed.After each,
git checkout -- .../_legacy.pyran andgit status --porcelainprinted nothing.Entry 6: witnesses
Differences from the head output (computed by comparing the JSON rows):
precap:protected_floor_reformedsimulated_council_tax_reduction_benunit1880.0 → 2120.0. No other row changed.unearned:private_pension_with_debt1879.999755859375 → 2000.0;tariff_with_debt1880.000244140625 → 2000.000244140625 (bothsimulated_council_tax_reduction_benunit). No other row changed.So the witnesses separate both mutants from the head, while entries 2 and 3 at this SHA do not.
Benefit-cap claimant at the head: in
actual_cap_with_debtandprotected_floor,uc_benefit_cap_reductionis 1200.0,uc_deductionsis 0.0 (printeduc_has_deductiontrue,uc_deduction_rate0.15000000596046448,uc_deduction_random_draw1.0,uc_deductions0.0; the same inprotected_floor_reformed),universal_creditis 16967.0 andsimulated_council_tax_reduction_benunitis 2120.0. With the 0.85 protected floor (protected_floor_reformed):uc_benefit_cap_reduction1200.0,uc_benefit_cap_reduction_after_floor0.0,universal_credit18167.0,simulated_council_tax_reduction_benunit1880.0.The script does not print
council_tax_reductionitself, so I ran a short extra script (/tmp/ctr_extra.py) that imports the witness script's two simulations and calculatescouncil_tax_reductionanduc_benefit_cap_reductionfor three rows. Its output, verbatim apart from the uv deprecation warning line:Witness output at the head (verbatim)
Witness output,
precapselected (verbatim)Witness output,
unearnedselected (verbatim)Not done
afedddewere not tested.--helper1995was not run; the brief did not ask for it.Generated by Claude Code
MaxGhenis commentedon Nov 2, 2026
Ready for hub review
Verdict: APPROVE WITH NITS at
dd39eafbb76982ec87020b96217a66f5b1ee0225(delta fromafeddde02e9f861ccd9df3587b7f53dbfedc3606).The formula is unchanged: the
_legacy.pydelta changes comments only. I checked each new YAML case by hand and reran them. I also reran the base comparison, both new mutants, the property test, the pension-age file, the CTR directory, the seven untouched property files and every merge-tree. Every figure in the body that I could rerun matches. None of my findings reaches P1 or P2.Findings
P3-1. The body's mutation notes describe the property test as it stood at
afeddde02. They also give stale counts for the three older mutants.PR_BODY.md, "Each mutation of the fix…" list. The first two bullets say "Atafeddde02the property test misses it". The property test still misses both mutants at this head. The last three bullets give counts "at an earlier commit … with the ten YAML cases it had then". I reran all five at this head. Each mutant replaces theuc_award = …line in a scratch copy of_legacy.py, and I restored the file after each run (git status --porcelainprinted nothing).uc_award =)max_(universal_credit_pre_benefit_cap - uc_benefit_cap_reduction, 0)(precap)[2120.] differs from 1880.0universal_credit + where(uc_unearned_income == 0, uc_deductions, 0)(unearned)[2000.]and savings[2000.0002]against 1880universal_credit_pre_benefit_cap2116.36against1316.36)universal_credit + 2 * uc_deductionsuniversal_credit - uc_deductionsThe precap and unearned mutants are my reconstructions from the body's descriptions, because the author's
select_mutation.pyisn't on GitHub.Replacement for the five bullets:
Then delete the sentence "The last three ran at an earlier commit of this branch, with the ten YAML cases it had then."
P3-2. The changelog fragment names no actor, and "when calculating" has no subject.
changelog.d/2799.fixed.md:1: "Use the Universal Credit award before debt deductions when calculating working-age Council Tax Reduction in Merton, Kingston upon Thames, Newham and Westminster." The hub ruled this text, and the author flagged the conflict as a judgment call. If the hub reopens it, this replacement keeps the ruled content and the imperative form:P3-3.
mainhas moved past the pinned SHA.origin/mainis nowa8ddb927c, 12 commits past2da212abc.git merge-tree --write-tree --name-only dd39eafb a8ddb927cis clean, andgit diff --stat 2da212abc a8ddb927ctouches nothing undervariables/gov/local_authoritiesorvariables/gov/dwp/universal_credit. The body's "main(2da212abc)" stays accurate as a pinned comparison, so no change is required. Rerun the merge-tree against the currentmainbefore publishing.Previous findings and this round's rulings
_legacy.py:51–57and the property test's docstring (lines 10–15) cite SI 2013/383 reg 10 for payments on account, SI 2013/384 reg 10 for overpayments and Sch 6 para 2(1) for third parties. They limit the penny rule to third-party deductions under Sch 6 para 3(1)(a), with the Secretary of State as the actor. That matches the para 3(1)(a) text quoted in the packet. I couldn't reach legislation.gov.uk, so I checked against the brief's quotations only.AXIOM_ISSUE.mdC9 and G set the count of other para 3(2) deductions to nil. Output 2 (in both places) requires both limbs and takes the count as an input. C10/H: with two existing deductions the proposed one is the third, so it's permitted; with three it would be the fourth, which para 3(1)(b) bars ✓.afeddde02, formula unchanged):full_CTR_no_earnings_{no,with}_debtboth give 2,600. By hand onmain: 0 + 12,298.80 < 12,898.80, so the reduction stays full. The body's sentence matches.git diff 2da212abc 16d06d8c2 -- …/uc_deduction_rate.pyswapsuc_latent_deduction_rateforassigned_latent_deduction_rateand documents that "an explicitly supplied rate here … applies whatever the flag says", which matches the body. #1995 figure by hand: award counted 0 + 9,000; 8,000 + 9,000 − 12,898.80 = 4,101.20; 2,600 − 20% × 4,101.20 = 1,779.76 ✓. I didn't run #1995's predicate. The paragraph says the PR adds no bound and names entry as the place to refuse, as ruled.voice_max.mdor the voice table, so I checked against the brief's writing rules only.02cc0896fHand checks of the new cases
All five new cases appear in
council_tax_reduction_universal_credit_deductions.yaml. The body's table rows match.capital_limit.yamlholds 16,000 from 2026-04-01 ✓.gov/dwp/universal_credit/elements/housing/non_dep_deduction/amount.yamlandgov/local_authorities/merton/council_tax_reduction/non_dep_deduction/amount.yaml.uc_maximum_reduction, the formula gives (1 − 0.85) × 5,098.80 = 764.82. Where the floor binds,allocate_uc_reductions(_reduction_allocation.py:50–59) setsfloor_deductions= min(764.82, 764.82) and the floor cap reduction to min(1,200, 764.82 − 764.82) = 0. Payable 18,167 − 764.82 = 17,402.18. Excess 3,600, giving 1,880. Counting the amount payable: 2,600 − 20% × 2,835.18 = 2,032.96. Counting the whole cap reduction: 2,120 ✓.Checked and sound
All runs used a detached worktree at
dd39eafb,uv sync --frozen --extra dev, withHUGGING_FACE_TOKENandPOLICYENGINE_UK_DEFAULT_DATASETunset._legacy.pyfrom2da212abcmaincolumn ✓main's_legacy.pyallcloseinvariant 2; first family2032.9639against1879.9998test_benefit_cap_and_ctr_pension_age_properties.pyat headafeddde02✓5fff4ca73/21bc1163b✓ruff@0.17.2 format --checkandcheckon the two Python files;check --select F811,F821 policyengine_uk;git diff --check 2da212abc..HEADgit diff afeddde02..HEAD -- _legacy.pyandgit diff 5fff4ca7..HEADchange only comment and docstring lines. So the body's statements about results atafeddde02,5fff4ca73and21bc1163bcarry over to this head.Simulation, I gave one benefit unituc_deductions: 600and a second, the real-cap household,uc_has_deduction,uc_latent_deduction_rate: 0.15andTHIRD_PARTY_ONLY. The second unit gotuc_deduction_rate0.15 butuc_deductions0.0 anduniversal_credit16,967. Alone in its ownSimulation, the same unit gaveuc_deductions764.82,uc_benefit_cap_reduction1,200,universal_credit16,202.18 andcouncil_tax_reduction2,120. Entering a variable for some units makes core treat it as an input for all of them, so the formula never runs. The hub'sunearnedandprecapwitness rows don't depend on it.uc_deduction_random_drawreturnsnp.oneswhen the simulation isn't built from data.uc_latent_deduction_ratereturnswhere(has_deduction, rate, 0).allocate_uc_reductionscaps current-law deductions atmax_(award - minimum_payable, 0). That supports invariant 1, the penny floor, and the claim that computed deductions can't exceed the award.max_examples=15, as the body states.git merge-tree --write-tree --name-only, explicit SHAs, fetched frompull/N/head). Each conflict list is identical with and without this branch:2da212abc, Assess Oxford Universal Credit applicants on Appendix 3 income #279419378b97f, Report the benefit cap reduction actually applied to Universal Credit #2647c98c879a7, Gate supplied UC latent deduction rates on uc_has_deduction #276016d06d8c2and Fix HB and national CTR non-dependant deductions #200797f792542are clean.1b8f2dedeconflicts in the same six files as main, without_legacy.py.3efa8bd60conflicts in the same seven files.779f5dcfdconflicts intest_means_test_income_properties.py, plusCHANGELOG.mdandpyproject.toml.b435c91e2conflicts in the same fourteen files, including_legacy.py._legacy.pycomment and the property docstring describe the current code.Fixes #2799,Reproducer:, the literalaxiom:line and the footer.What I couldn't check
02cc0896f: the ruled Fix HB and national CTR non-dependant deductions #2007 SHA isn't fetchable (couldn't find remote ref). I checked Fix HB and national CTR non-dependant deductions #2007's current head97f792542only.AXIOM_ISSUE.mdand the brief only. Nobody quoted the citations of UC Regs 2013 regs 22(1)(b)(i), 66(1)(a), 72(1) and 82(1)(a) or Sch 4 paras 13–14, the 4.35-per-250 tariff, or the earnings-exception wording. I checked those only as model parameters, by running them, not as law.council_tax_reduction_passports.yaml,test_isa_income_consumers.py,test_council_tax_reduction_maintenance_wpa.py,test_non_dependant_spousal_maintenance.pyortest_council_tax_reduction_applicant_properties.py.voice_max.md,select_mutation.py,witness_batch_r2.pyand ther2/logs aren't on GitHub.Generated by Claude Code