You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pensioner council tax reduction: applicable amount (post-April-2021 allowance, children, severe disability premium) and income (Child Benefit, tariff income) #1933
Found while building #1909 (Pension Credit disregard in pensioner CTR). The law cites below were read on legislation.gov.uk on 2026-09-30; re-verify them before encoding.
Pensioner applicable amount
council_tax_reduction_applicable_amount builds the amount from the Housing Benefit personal allowances plus benefits_premiums. Three gaps:
Personal allowance. It uses the pre-April-2021 pensioner allowance for everyone: £256.00 single and £383.35 couple in 2026-27. SI 2012/2885 Sch 2 para 1, WSI 2013/3029 Sch 2 para 1 and SSI 2012/319 Sch 1 para 2 give £238.00 single and £363.25 couple where the applicant or partner reached pensionable age on or after 1 April 2021.
Children. There is no child or young person allowance and no family premium (Sch 2 paras 2-3).
Severe disability premium. It computes 0 for a single attendance allowance recipient who lives alone. The premium is £86.05 a week in 2026-27 (Sch 2 Part 3 para 6(2)(a)).
A Housing Benefit session is adding pension-age allowance cohort parameters for HB (branch hb-pension-age-allowance-cohorts). CTR should reuse them.
Pensioner income
council_tax_reduction_applicable_income has two gaps:
Child Benefit. It counts Child Benefit, which SI 2012/2885 Sch 1 para 16(1)(j)(vi) excludes for pensioners.
Tariff income. It has no tariff income from capital for pensioners who do not receive Pension Credit: £1 a week per £500 over £10,000 (Sch 1 para 37; WSI 2013/3029 Sch 1 para 31).
The same variable also feeds the working-age schemes in Scotland and Wales, so check their rules separately.
Verdict: APPROVE WITH NITS at e8831fb6b295d0c959b4694913574366997b26b3 (delta from c5b07aec7e28d84114efe49600eb54e055a85c14, on main 2da212abcf2086337fc088a4a1236f4ae7b6af63)
There are no P1 or P2 findings, and five P3s. I checked the head out detached in a scratch worktree and ran everything below there with uv sync --frozen --extra dev, with HUGGING_FACE_TOKEN and POLICYENGINE_UK_DEFAULT_DATASET unset. I changed no branch.
Findings
P3-1. Test plan: the Pension Credit property file now has a full result at this head, and four files "did not run locally"
PR_BODY.md, Results. Ruling 7 asked for every unrun statement to be replaced. Two bullets still give partial or no results, and both now have full runs at e8831fb6b:
uv run pytest policyengine_uk/tests/test_council_tax_reduction_pension_credit_properties.py -n 4 -q
9 passed in 622.81s (0:10:22)
uv run pytest policyengine_uk/tests/test_claims_all_entitled_benefits.py -n 4 -q -rs
SKIPPED [1] policyengine_uk/tests/test_claims_all_entitled_benefits.py:136: Requires POLICYENGINE_UK_DEFAULT_DATASET or HUGGING_FACE_TOKEN for microsimulation dataset access
19 passed, 1 skipped in 237.56s
test_council_tax_reduction_claimant_family_scheme_properties.py 3 passed in 363.74s
test_legacy_award_readers_properties.py 18 passed in 278.71s
test_council_tax_reduction_carer_income_properties.py 4 passed in 236.00s
test_council_tax_reduction_applicant_properties.py 2 passed in 146.90s
test_council_tax_reduction_prescribed_benefits_properties.py 4 passed in 83.41s
Replace the Pension Credit bullet with:
test_council_tax_reduction_pension_credit_properties.py: 9 passed, including the two route tests whose reference income adds the tariff (test_awards_follow_the_pension_credit_routes, test_savings_credit_only_awards_use_the_pension_credit_assessment).
Replace the test_claims_all_entitled_benefits.py bullet's "at c5b07aec7" with nothing, since the result is the same at this head. Replace the "CI runs the other property files…" bullet with:
The other property files that compute Council Tax Reduction: test_council_tax_reduction_claimant_family_scheme_properties.py3 passed, test_legacy_award_readers_properties.py18 passed, test_council_tax_reduction_carer_income_properties.py4 passed, test_council_tax_reduction_applicant_properties.py2 passed and test_council_tax_reduction_prescribed_benefits_properties.py4 passed.
P3-2. Overlap table: one stale SHA, one count I can't reproduce, and one PR missing
PR_BODY.md, "Overlap with open PRs and issues". I ran git merge-tree --write-tree --name-only <base> <head> with explicit SHAs against e8831fb6b and 2da212abc, using git 2.43.0:
fix-2120-uc-carer-awards now points at 260f6a77e, two commits after 4613ac60f (git rev-list --count 4613ac60f..260f6a77e gives 2; pushed 2026-11-02 05:18 −05:00). It still merges clean and still has no PR (gh api "repos/PolicyEngine/policyengine-uk/pulls?head=PolicyEngine:fix-2120-uc-carer-awards&state=all" --jq length gives 0). Replace 4613ac60f with 260f6a77e, or re-read the SHA just before opening the PR.
For Give Scotland and Wales working-age CTR their own rules #1966779f5dcfd I get 3 files against main and against this branch: CHANGELOG.md, policyengine_uk/tests/test_means_test_income_properties.py and pyproject.toml. The body says 1. The two commits have more than one merge base (git diff 2da212abc...779f5dcfd warns "multiple merge bases"), so ort's virtual base can depend on the git version. This PR adds no conflict either way. Rerun on the hub's git and report its count, or change the row to #1966 779f5dcfd with its own count.
P3-3. Case 23 comment: an ambiguous "it", and an instrument nobody here quoted
council_tax_reduction_pensioner_child_amounts.yaml:750-756. The author flagged the "it". Separately, the comment says the 83.24 comes from "Sch 2 para 2(1), as SI 2024/29 amended it". The parameter file cites "SI 2012/2885 Sch. 2 para. 2, as in force on 30 April 2024" (england/.../child_or_young_person.yaml:44), and no input to this review quotes SI 2024/29, so I couldn't check that citation. The figure itself holds: 3 × 83.24 × 52 = 12,985.44, and the parameter reads 83.24 for model year 2024. Replacement:
# Councils apply SI 2012/2885 Sch 1 para 6(1C) where the applicant "has# an award of child tax credit" (para 6(1B)(a)) and counting under (1C)# gives more than para 6(1)(b), so they count the entered award. They# count each child whose individual element the award includes: three,# more than the two under para 6(1)(b). The Secretary of State set the# 2024-25 amount at 83.24 a week (Sch 2 para 2(1), as in force on 30# April 2024), so 3 * 83.24 * 52 = 12,985.44.
Keep "as SI 2024/29 amended it" only if someone confirms SI 2024/29 is the 2024 amending instrument. The change touches comments only and needs no rerun.
P3-4. Tariff docstring: "also set" misattributes the Housing Benefit amounts
council_tax_reduction_pensioner_tariff_income.py:19-21 reads "We use the pension-age Housing Benefit tariff amounts, which the Secretary of State, the Welsh Ministers and the Scottish Ministers also set." The Welsh and Scottish Ministers don't set Housing Benefit amounts; they set equal amounts in their own schemes. Replacement:
"We use the pension-age Housing Benefit tariff amounts, which equal those the Secretary of State, the Welsh Ministers and the Scottish Ministers set for their Council Tax Reduction schemes."
P3-5. The author's report miscounts the parameter files changed
The author's report says "four parameter files" differ. The diff touches six parameter files (git diff --stat c5b07aec7 e8831fb6b). Four changed their description. The other two (England and Scotland child_or_young_person.yaml) changed only YAML comments. The body says "four parameter descriptions", which is right. Nothing to change in the PR; I'm noting it only so the hub's record is right.
Checked and sound
No formula changed. I parsed every changed file at both commits. The Python ASTs match once docstrings and documentation/label assignments are stripped, for all 8 Python files. Each of the 6 parameter files parses equal once description is removed. The four test YAMLs match case for case, and the child file's 22 old cases form an exact prefix of the 23 new ones.
Round-3 findings. P3-1: the review_finding block in the brief's copy of AXIOM_ISSUE.md has > on the line between S6 and W3, so it reads as one quote. P3-2: line 108 of docs/book/assumptions/housing-benefit-child-allowances.md at 2da212abc reads "deferred. This includes the proposal to implement only unrestricted periods.", and the draft quotes that sentence. P3-3: closed apart from the new drift in P3-2 above; Council Tax Reduction income deducts the family's whole income tax, not the tax the schemes allow #2090 is open with no PR (gh api repos/.../issues/2090 gives open, and a search for open PRs gives 0). P3-4: closed, see the reproducer below. P3-5: the comment and docstring rows in the delta read as the table asked. The be-verb grep on the added lines finds only one quotation ("is payable") and two adjectives.
Case 23 and its mutant. The three test YAMLs pass at head: child 23, tariff 17, child benefit 8. The whole CTR YAML directory gives 371 passed. I rebuilt the gate mutants at e8831fb6b in a scratch worktree by replacing single lines, and each one fails:
Mutant
Result
closure also drops an entered award ((child_tax_credit > 0) & active)
killed: 1 failed, 22 passed, Case 23 [8656.96] differs from 12985.44
gate ignored (if True)
killed: Case 22
gate negated
killed: Cases 20 and 22
positive award only (if False)
killed: Case 20
eligibility without claim
killed: Case 21
claim without eligibility
killed: Case 19
Other tests at head.test_parameter_descriptions.py 24 passed. test_council_tax_reduction_pensioner_children_tariff_properties.py and test_council_tax_reduction_child_benefit_properties.py gave 10 passed together. The new child-benefit docstring matches the assertion it describes (award = old award + 0.2 × Child Benefit).
Lint.uvx ruff@0.17.2 format --check and check on the 8 changed Python files, check --select F811,F821 policyengine_uk, and git diff --check 2da212abc e8831fb6b are all clean.
Premiums draft (P3-4 of round 3). I reran A0-A4 and A2c in all three nations at head and at 2da212abc. Head gives 17,881.76, 18,933.20 and 19,024.20; A2c awards of 1,233.55, 1,443.84 and 1,454.11 on applicable income of 21,714.00, 21,714.00 and 21,753.67; council_tax_reduction_premiums 0; and housing_benefit_child_disability_premiums 6,159.40 for A2 and 4,391.92 for A3 and A4. Main gives 13,312.00 for every case and A2c awards of 319.60, 319.60 and 311.67. The statutory columns' arithmetic holds.
Body figures I reran. The Which years table matches the parameter reads for 2015-2027 (2027: 90.96, 20.93 and 113.69 after rounding). tax_credits.active reads true until 2024 and false from 2025. The savings-credit-only 90-year-old gives Pension Credit income of 13,314 and 13,938, applicable income of 13,872.62 and 14,247.02, and tariff 0. The worked amounts hold: 87.88 × 52, 109.85 × 52, 20.22 × 52, 118.45 × 52, and 24,736.40 for two Scottish children.
Line references.MAIN_DEDUCTIONS sits at line 291, and the recomputation runs from line 374 to the tariff addition at 394-396. council_tax_reduction_applicable_amount.py:102-117 matches the draft. council_tax_reduction_premiums.py, benefits_premiums.py, housing_benefit_child_disability_premiums.py, housing_benefit_applicable_amount.py, housing_benefit_family_premium.py and the docs page are byte-identical at main and head (git diff --quiet).
Only Case 22 and Case 23 set gov.dwp.tax_credits.active to false. claims_universal_credit.yaml:477 sets it to true, as the body says.
Changelogchangelog.d/1933.fixed.md is unchanged and passes.
What I couldn't check
Law: legislation.gov.uk doesn't resolve from here. I relied on the quotations in the brief. SI 2024/29 (P3-3) and the Scottish war-pension wording in council_tax_reduction_applicable_income's documentation ("Scottish councils count none of them") rest on provisions nobody quoted.
The hub's words_only.py, logs and witness folders. I replaced them with my own AST and YAML comparison above.
The #1966 count difference may come from the git version; I ran only git 2.43.0.
The Invariants couple example (UC of £2,226.20; applicable amount 19,934.20 → 7,807.80). My reconstruction of the household, without the original situation, gave a single allowance of 13,312, so I neither confirm nor dispute it.
The older-commit results: 293 passed on 26 YAML files at c91e960cf; test_savings_credit_only_receipt_properties.py at f5c75cbfc; the 2,145-value differential at 15f986ada; the fails-on-main counts; the eight pre-gate mutants (I reran only the six gate mutants); the 28-run gate probe; and the 2011-2014 ParameterNotFoundError sentence.
The Housing Benefit draft's B and W reproducer rows. Only line 37 of that draft changed, and I didn't rerun it.
The Axiom packet's corpus and release hashes, and check_block_companions.py.
Fixes #1933
## What and why
PolicyEngine's pension-age Council Tax Reduction for England, Scotland and Wales left out two parts of the law. At main `2da212abc`, the model gave a 72-year-old an applicable amount of £13,312 a year (256.00 × 52) whether or not a ten-year-old lived with them, and counted capital over £10,000 as no income. Earlier PRs on this issue added the post-April-2021 personal allowances, the severe disability premium and the Child Benefit exclusion. We now add child amounts, family premiums and tariff income. We still leave out the enhanced disability and disabled child premiums for a pensioner's child (see **Not modelled**).
**Child or young person amounts and the family premium.** Councils add a weekly amount for every child or young person in a pensioner applicant's family. The Welsh Ministers keep a family premium; the Secretary of State and the Scottish Ministers ended theirs in 2016:
| Scheme | Provision | 2026-27 child amount | Family premium |
| --- | --- | --- | --- |
| England | SI 2012/2885 Sch 1 para 6(1)(b)-(c), Sch 2 paras 2-3 | £87.88 | nil for reduction weeks beginning after 1 May 2016 (SI 2015/2041 reg 2(4)(b)) |
| Wales | WSI 2013/3029 Sch 1 para 1(1)(b)-(c), Sch 2 paras 2-3 | £87.88 | £20.22 |
| Scotland | SSI 2012/319 reg 20(b), Sch 1 para 3 | £109.85 | removed from 1 May 2016 (SSI 2016/81 reg 18) |
For the 2018-19 to 2024-25 schemes, the Secretary of State limited England's child amounts to two children or young persons, or more where the applicant's Child Tax Credit award included the individual element for more (SI 2017/1305 reg 7, inserting para 6(1A)-(1C); removed for 2025-26 by SI 2025/39 reg 5(2)). Councils apply the exception where the applicant has an award of Child Tax Credit "whether or not any amount is payable" (para 6(1B)(a)). In `council_tax_reduction_pensioner_child_amounts`, we count an award when final `child_tax_credit` exceeds zero, whether the model calculates it or the user enters it. While HMRC pays tax credit awards (`gov.dwp.tax_credits.active`), we also count `would_claim_CTC` with `is_CTC_eligible` to retain nil-rate awards, as `has_tax_credit_award` does. HMRC paid no ongoing tax credit awards after 5 April 2025, and the Secretary of State removed England's limit for the 2025-26 schemes, so that condition changes no current-law result. It changes a result only under a reform that closes tax credits before 2025-26 or restores England's limit after it. We add the family premium through `council_tax_reduction_pensioner_family_premium` and add both amounts for pensioners. When a household head applies alone, we assume their family includes no children because the model cannot identify those relationships.
So the 72-year-old with a ten-year-old now has an applicable amount of £17,881.76 in England (13,312 + 87.88 × 52), £19,024.20 in Scotland (13,312 + 109.85 × 52) and £18,933.20 in Wales (13,312 + 87.88 × 52 + 20.22 × 52). In 2024-25, an English 72-year-old with three children born before April 2017 and an entered Child Tax Credit award of £9,800.95 gets three child amounts, £12,985.44 (3 × 83.24 × 52); without an award they get two, £8,656.96. Under a reform that ends tax credits for 2024-25, a family that reports Child Tax Credit has no award and also gets two; where the user enters the award HMRC made, we still count it, as councils do, and the family gets three.
**Tariff income.** Councils treat a pensioner's capital as a weekly income of £1 for each £500, or part of £500, over £10,000. The Secretary of State and the Welsh Ministers count the excess "not exceeding £16,000" (SI 2012/2885 Sch 1 para 37; WSI 2013/3029 Sch 1 para 31). The Scottish Ministers set no ceiling in SSI 2012/319 reg 27(2). All three bar a reduction where capital exceeds £16,000 (SI 2012/2885 reg 11(2); WSI 2013/3029 reg 30; SSI 2012/319 reg 40). Councils apply the £16,000 limit to assessable capital after statutory disregards (SI 2012/2885 reg 11(3); WSI 2013/3029 reg 30(2); SSI 2012/319 reg 41), and disregard all of an applicant's capital where the applicant or their partner receives guarantee credit (England Sch 1 para 13, Wales Sch 1 para 7, Scotland reg 24). In the new `council_tax_reduction_pensioner_tariff_income` we apply the tariff to `council_tax_reduction_assessable_capital`, the capital the model already represents (this PR does not widen it; #1936 tracks that). We add it to general-rule income after the income floor, so the tax and pension deductions cannot reduce it. Councils count no tariff income on £10,000 of capital, £52 a year on £10,001 and £624 on £16,000. At £20,000 of capital, a Scottish pensioner off Pension Credit has £1,040 of tariff income (20 × £1 × 52) and an English or Welsh one £624, and none of them gets a reduction.
**Pension Credit.** Councils keep the guarantee credit route: they disregard the whole of the applicant's capital and income (England Sch 1 para 13, Wales Sch 1 para 7, Scotland reg 24), so we add no tariff income. On a savings-credit-only award they use the Secretary of State's assessment of income and capital (England Sch 1 para 14, Wales Sch 1 para 8, Scotland reg 25). The Secretary of State already counts Pension Credit's deemed income from capital in that assessment (`pension_credit_income` sums the sources in `gov.dwp.pension_credit.guarantee_credit.income`, which lists `pension_credit_deemed_income`), so we add no tariff income on top. A savings-credit-only pensioner with £16,000, in `council_tax_reduction_pension_credit.yaml`, keeps applicable income of £14,247.02.
### Reuse of Housing Benefit parameters
- **Tariff income.** We reuse the pension-age Housing Benefit tariff parameters (`gov.dwp.housing_benefit.means_test.capital.pension_age.tariff_income`: £1 for each £500 over £10,000, SI 2006/214 reg 29(2)). The Secretary of State, the Welsh Ministers and the Scottish Ministers set the same step, amount and threshold, so this PR adds no tariff parameter. For the £16,000 ceiling in England and Wales we read each scheme's existing capital limit.
- **Child amounts.** The model's Housing Benefit has no child allowance parameter to reuse: `housing_benefit_applicable_amount` adds no child amounts at all. We put the new parameters under each scheme. England's amounts equal the pension-age Housing Benefit amounts (SI 2006/214 Sch 3 para 2) in every year; Wales and Scotland differ:
| Year | HB (SI 2006/214 Sch 3 para 2) | England | Wales | Scotland |
| --- | --- | --- | --- | --- |
| 2013-14 | 65.62 | 65.62 | 65.62 | 65.62 |
| 2014-15 | 66.33 | 66.33 | 66.33 | 66.33 |
| 2015-16 to 2016-17 | 66.90 | 66.90 | 66.90 | 66.90 |
| 2017-18 to 2019-20 | 66.90 | 66.90 | 66.90 | 83.63 |
| 2020-21 | 68.27 | 68.27 | **66.90** | 85.34 |
| 2021-22 | 68.60 | 68.60 | **66.90** | 85.75 |
| 2022-23 | 70.80 | 70.80 | 70.80 | 88.50 |
| 2023-24 | 77.78 | 77.78 | 77.78 | 97.23 |
| 2024-25 | 83.24 | 83.24 | 83.24 | 104.05 |
| 2025-26 | 84.66 | 84.66 | 84.66 | 105.85 |
| 2026-27 | 87.88 | 87.88 | 87.88 | 109.85 |
The Welsh Ministers did not raise the child amount or the family premium for 2020-21 or 2021-22: in WSI 2020/16 reg 8 and WSI 2021/34 reg 5 they amended only Sch 2 para 1 and Part 4. For each value we cite the version of the schedule in force on 30 April, or the amending regulations where legislation.gov.uk's revised text lags them (WSI 2013/112 reg 5(b) for Wales in 2013-14; SSI 2025/24 for Scotland in 2025-26).
- **Family premium.** Housing Benefit's family premium parameter holds the protected premium for legacy awards, which `housing_benefit_family_premium` gates on a protection category. Welsh councils add the premium for every pensioner family with a child or young person, and the Secretary of State and the Scottish Ministers ended theirs in 2016, so each scheme has its own parameter.
### Which years
The change reaches model years 2015 onward. Each new parameter starts on 1 April 2013, the first Council Tax Reduction scheme year, but the model annualises parameters only from 2015: `_fiscal_year_conversion_years` in `policyengine_uk/utils/parameters.py` keeps the years from 2015 (lines 108 and 126), and `convert_to_fiscal_year_parameters` gives each ordinary parameter its value on 30 April of the year (line 171). The Housing Benefit personal allowance that the CTR applicable amount reads starts on 1 April 2015, so the model has no applicable amount before then, as on main. A run of the parameter tree on this branch gives:
| Model year | 2015 | 2016 | 2017 | 2018-2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 2027 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| England child amount | 66.90 | 66.90 | 66.90 | 66.90 | 68.27 | 68.60 | 70.80 | 77.78 | 83.24 | 84.66 | 87.88 | 90.96 |
| England family premium | 17.45 | 17.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| England child limit | none | none | none | 2 | 2 | 2 | 2 | 2 | 2 | none | none | none |
| Wales child amount | 66.90 | 66.90 | 66.90 | 66.90 | 66.90 | 66.90 | 70.80 | 77.78 | 83.24 | 84.66 | 87.88 | 90.96 |
| Wales family premium | 17.45 | 17.45 | 17.45 | 17.45 | 17.45 | 17.45 | 17.85 | 18.53 | 19.15 | 19.48 | 20.22 | 20.93 |
| Scotland child amount | 66.90 | 66.90 | 83.63 | 83.63 | 85.34 | 85.75 | 88.50 | 97.23 | 104.05 | 105.85 | 109.85 | 113.69 |
| Scotland family premium | 17.45 | 17.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Two dates limit the change. The Secretary of State made England's family premium nil, and the Scottish Ministers removed Scotland's, from 1 May 2016, after the 30 April reading, so we keep both premiums for the whole of model year 2016 and drop them from 2017. England's two-child limit covers model years 2018 to 2024. After 2026-27 we uprate the child amounts and the Welsh family premium by September CPI (`gov.benefit_uprating_cpi`), as we uprate the Housing Benefit family premium. We count tariff income in every model year from 2015; the Housing Benefit tariff threshold reads £10,000 from 2 November 2009.
### Not modelled
- Transitional protection. We do not model the English and Scottish family premium that councils keep for families with a child who had a reduction on 30 April 2016 (SI 2015/2041 reg 3; SSI 2016/81 reg 2 and SSI 2012/319 reg 20(e), £19.48), or England's protection for families with more than two children on 31 March 2018 (SI 2017/1305 reg 17). No input identifies these families.
- The enhanced disability premium and the disabled child premium for a pensioner's child (England SI 2012/2885 Sch 2 paras 7 and 8; Wales WSI 2013/3029 Sch 2 paras 7 and 8; Scotland SSI 2012/319 Sch 1 paras 8 and 9; £33.99 and £84.46 a week in 2026-27). We currently include the severe disability and carer premiums for pensioners. We give a 72-year-old in England whose ten-year-old gets the highest rate of the DLA care component an applicable amount of £17,881.76, where councils add 118.45 × 52 = £6,159.40 under paras 7 and 8, for £24,041.16. We give £18,933.20 in Wales against £25,092.60, and £19,024.20 in Scotland against £25,183.60. #2824 tracks them.
- Child amounts, the family premium and tariff income for working-age families in Scotland and Wales (#1966 covers them).
- Applicant and partner capital. We use household savings in their place, and where the household head applies alone we cannot establish whether a child belongs to the head's family.
### Existing tests changed
Each change follows from the law above. Only the Child Benefit property test changes an input, its State Pension range.
- `council_tax_reduction_pension_credit.yaml`, "Capital of exactly 16,000 is within the limit for a pensioner without Pension Credit": the award moves from £2,000 to £1,954.80. Under Sch 1 para 37 the pensioner has £624 of tariff income: 13,000 − 86 tax + 624 = 13,538, and 2,000 − 0.2 × (13,538 − 13,312) = 1,954.80. The old comment named this as the #1933 gap.
- `council_tax_reduction_pensioner_child_benefit.yaml`, "England pensioner Child Benefit is excluded before the CTR taper": the applicable amount moves from £13,312 to £17,881.76 (the child's 87.88 × 52, Sch 2 para 2), so income of £15,314 no longer exceeds it and the award moves from £2,599.60 to the whole £3,000. "Not claiming Child Benefit preserves the pensioner general-rule income" moves the same way, from £2,599.60 to £3,000.
- `council_tax_reduction_young_person.yaml`, Case 5: Scotland's pension-age applicable amount for a lone parent with a 19-year-old young person moves from £13,312 to £19,024.20 (SSI 2012/319 reg 20(b) and Sch 1 para 3, 109.85 × 52).
- `test_council_tax_reduction_child_benefit_properties.py`: the generated State Pension range moves from £15,000-£19,000 to £30,000-£34,000. The test checks the 20% taper on an award between the floor and the cap, which needs income above an applicable amount that now includes up to two children's amounts (£24,736.40 for two children in Scotland). Its assertions stay the same.
- `test_council_tax_reduction_pension_credit_properties.py`: invariant 4 recomputes general-rules income from its components rather than reading the variable. The recomputation now adds the pensioner tariff income, written out from the law: 52 × ceil((capital − 10,000) / 500) where positive, capping capital at £16,000 in England and Wales and leaving it uncapped in Scotland. Families off Pension Credit with savings over £10,000 still match. Its assertions stay the same.
### Overlap with open PRs and issues
We ran `git merge-tree --write-tree --name-only` of each head against this branch (`06e51a8ab`) and against main (`2da212abc`) to find the conflicts this PR adds:
| Head | Conflicts with main | Added by this PR |
| --- | --- | --- |
| #1995 `1b8f2dede` | 6 files | `council_tax_reduction_pension_credit.yaml` |
| #2017 `3efa8bd60`, #2077 `cf0475ddb` | the same 7 non-dependant and claimant-family files | none |
| #2002 `6df59cdb4` | 22 files | none |
| #1966 `779f5dcfd` | 3 files with git 2.43 (`CHANGELOG.md`, `tests/test_means_test_income_properties.py`, `pyproject.toml`); the two commits have more than one merge base | none |
| #2301 `cf381c188`, #2302 `98a473909`, #2688 `798491cb7` | 1 file each | none |
| #1969 `3a3241cf6`, #2007 `97f792542`, #2756 `c34662736`, #2776 `1d4a3e475`, #2808 `43a545dcb` | none | none |
| branch `fix-2120-uc-carer-awards` `260f6a77e`, which has no PR | none | none |
**#1995** (legacy capital-derived income) and this PR both move the £16,000 capital case in `council_tax_reduction_pension_credit.yaml` to £1,954.80. #1995 also adds `council_tax_reduction_tariff_income` (the pensioner tariff plus the Scottish and Welsh working-age tariffs) on the line of `council_tax_reduction_applicable_income` where this PR adds `council_tax_reduction_pensioner_tariff_income`, and widens `council_tax_reduction_assessable_capital` from savings to savings plus land and property other than the home. To merge it after this PR, keep one tariff addition after the income floor, with this branch's uncapped Scottish pensioner tariff and applicant-family Pension Credit gate, and let #1995's wider assessable capital feed that calculation. Its working-age tariff stays its own. #2002 builds on #1995, so #1995 has to merge first.
Issue **#2090** (CTR income deducts the family's whole income tax) has no PR. A fix would change the tax we deduct from general-rule income before the floor. Keep the tariff as a separate addition after the deductions, and change the reference income in `test_council_tax_reduction_pension_credit_properties.py` with it (`MAIN_DEDUCTIONS` at line 291 and the recomputation at lines 374-396).
#1966 adds working-age child amounts and tariff income in separate working-age variables, so the pensioner variables here stay apart from them.
## Invariants
Each invariant holds on a fixed route and status: the family stays on the same Council Tax Reduction scheme (pensioner or working-age) and, for the first, off Pension Credit.
1. For a pensioner off Pension Credit, tariff income is 52 × £1 for each £500, or part of £500, of capital above £10,000 (up to £16,000 in England and Wales), and nil for working-age families and on the Pension Credit routes. It never falls as capital rises, capital changes nothing else in the applicable income, and the award never rises with capital.
2. For a family whose scheme stays the same, adding a dependent child never lowers the applicable amount. For a pensioner, councils add 52 times the scheme's weekly rate for each extra child they count. In England from 2018-19 to 2024-25, they count up to two children, or more where a Child Tax Credit award includes individual elements for more. In Wales, councils also add the family premium with the first child.
3. A pensioner with no child and capital up to £10,000, and every working-age family, gets no child amount, family premium or tariff income, so their applicable amount, applicable income and award match origin/main.
Off those routes, capital and a child can both move these amounts. A savings-credit-only pensioner aged 90 with a State Pension of £13,500 has no tariff income at £10,000 or £16,000 of capital, but the Secretary of State counts Pension Credit's deemed income in the assessment, so their Pension Credit income rises from £13,314 to £13,938 and their applicable income from £13,872.62 to £14,247.02. A couple aged 72 and 50 with a State Pension of £10,000 who claim Universal Credit get none of it until a ten-year-old joins them. With the child, the couple gets £2,226.20 of Universal Credit and moves to the working-age scheme, and their applicable amount falls from £19,934.20 to £7,807.80.
## Test plan
- [x] YAML tests whose expected values come from the legislation: `council_tax_reduction_pensioner_child_amounts.yaml` (23 cases) and `council_tax_reduction_pensioner_tariff_income.yaml` (17 cases), with the arithmetic worked in comments.
- [x] `make format` equivalent on the changed files (see below).
- [x] Changelog fragment `changelog.d/1933.fixed.md`.
### Results
Every run used small hand-built situations; no survey data. Since `36f1dd17e`, this branch changes one formula, the tax-credit closure condition in `council_tax_reduction_pensioner_child_amounts`, and adds child Cases 21, 22 and 23. Its other changes touch documentation, comments, docstrings, parameter descriptions and the changelog. `c5b07aec7` has this head's code. From it to this head, `06e51a8ab`, the Python syntax trees match once we strip docstrings and documentation, and the parsed YAML matches apart from Case 23 and four parameter descriptions. Unless a bullet names a commit, the run used `e8831fb6b`.
- `council_tax_reduction_pensioner_child_amounts.yaml`: **23 passed** at `06e51a8ab`. At `c5b07aec7`, before Case 23, 22 passed.
- `council_tax_reduction_pensioner_tariff_income.yaml`: **17 passed** at `06e51a8ab`.
- `council_tax_reduction_pensioner_child_benefit.yaml`: **8 passed**.
- `policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/`, all 24 files in one run: **371 passed**, and no case raised a `CycleError`.
- The 26 other YAML files that read Council Tax Reduction outputs (`entitledto_scenarios.yaml`, `ctc_child_element_eligibility.yaml`, the Housing Benefit, legacy award reader, Pension Credit and winter fuel files among them): **293 passed** at `c91e960cf`. The closure condition changes a result only where `gov.dwp.tax_credits.active` reads false while England's limit runs. Outside the child amounts file, only `claims_universal_credit.yaml` sets that parameter, to true, for 2026.
- `test_council_tax_reduction_pensioner_children_tariff_properties.py`: **7 passed** (the three Hypothesis properties, the Northern Ireland check and the frozen origin/main differential for 2019, 2024 and 2026). Its generated families report no Child Tax Credit, so the closure condition never applies to them.
- `test_council_tax_reduction_pension_credit_properties.py`: **9 passed** at `e8831fb6b`, including the two route tests whose reference income adds the tariff (`test_awards_follow_the_pension_credit_routes`, `test_savings_credit_only_awards_use_the_pension_credit_assessment`).
- `test_council_tax_reduction_child_benefit_properties.py`, with its higher State Pension range: **3 passed**.
- `test_claims_all_entitled_benefits.py`, which runs its tax credit families in 2024, while England's limit runs: **19 passed, 1 skipped** at `e8831fb6b`. `test_survey_takeup_follows_reports_in_microdata` carries the `microsimulation` mark, and with no survey dataset configured the suite skips it.
- `test_parameter_descriptions.py`: **24 passed** at `06e51a8ab`.
- `test_savings_credit_only_receipt_properties.py`: **6 passed** (1,901 seconds) at `f5c75cbfc`.
- The other property files that compute Council Tax Reduction, at `e8831fb6b`: `test_council_tax_reduction_claimant_family_scheme_properties.py` **3 passed**, `test_legacy_award_readers_properties.py` **18 passed**, `test_council_tax_reduction_carer_income_properties.py` **4 passed**, `test_council_tax_reduction_applicant_properties.py` **2 passed** and `test_council_tax_reduction_prescribed_benefits_properties.py` **4 passed**.
- Closure condition at `c5b07aec7`: we ran an English 72-year-old with three children who reports Child Tax Credit in each model year from 2015 to 2030, and in 12 runs under reforms. The reforms close tax credits from 2018-19, for 2024-25, or from a date before or after the 30 April reading; extend England's limit past 2025-26 with tax credits closed or open; or close tax credits for 2024-25 and enter a final award, or a claim and eligibility without a report. In all 28 runs, the claim-and-eligibility route that the condition counts equals `has_tax_credit_award`. `child_limit` reads 2 for model years 2018 to 2024, and infinity from 2014 to 2017 and from 2025 on.
- For model years 2011 to 2014, `council_tax_reduction` raises `ParameterNotFoundError` on `gov.dwp.pension_credit.mixed_age_couples` in all three nations, on main and on this branch alike, so the new variable's failed read of `child_limit` before model year 2014 adds no failure.
- We ran 2026 households in Maidstone, Cardiff and Glasgow at `c5b07aec7` and at `2da212abc`. For private renters who claim Housing Benefit, with and without a ten-year-old, `housing_benefit` and the amounts it reads match. For a 72-year-old homeowner, only the Council Tax Reduction outputs move: with a ten-year-old, the applicable amount rises from 13,312.00 to 17,881.76 in England, 18,933.20 in Wales and 19,024.20 in Scotland, and with £24,000 of pensions the award rises from 319.60 to 1,233.55 in England, from 319.60 to 1,443.84 in Wales and from 311.67 to 1,454.11 in Scotland.
- The off-route amounts under **Invariants** and the parameter table under **Which years** come from one household and parameter run, which gives the same 52 rows at `e8831fb6b` as at `c91e960cf`.
- Lint at `06e51a8ab`: `ruff format --check` and `ruff check` (ruff 0.17.2) on the changed Python files, `ruff check --select F811,F821 policyengine_uk` and `git diff --check`: clean.
**Fails on origin/main.** On `2da212abc`, child Cases 1-17 and tariff Cases 1-14 (we removed the new variables' outputs, since main lacks them) give **12 failed, 12 passed**. The 12 failures cover the changed cases: the five applicable amounts with a child or young person (13,312 against 17,881.76, 17,881.76, 19,024.20 and 18,933.20, and the couple's 19,934.20 against 29,073.72) and the seven applicable incomes with capital over £10,000 (12,570 against 12,622 and 13,194 in each nation, and 14,514 against 15,138). The cases that should not move (no child, capital of £10,000, Guarantee Credit, savings credit only, working age) pass. The new property file's child and tariff tests (`test_adding_a_dependent_child_never_lowers_the_applicable_amount`, `test_tariff_income_is_the_tariff_and_never_falls_as_capital_rises`) fail on origin/main too (**2 failed**), because main has no `council_tax_reduction_pensioner_child_amounts` or `council_tax_reduction_pensioner_tariff_income`.
**Differential against origin/main.** We ran the same 23 fixed households (18 across the three nations and one English working-age family under each of the five local schemes) and 120 seeded random households (58 pensioners with no child and capital up to £10,000, 12 of them claiming Pension Credit, and 62 working-age families with any children and capital, 14 of them English families under the local schemes) through this branch and an export of `2da212abc`, for 2019, 2024 and 2026. Of 2,145 values (applicable amount, applicable income, `council_tax_benefit`, `council_tax_reduction_pensioner`, `council_tax_reduction`), **none differs**. We ran that comparison at `15f986ada`. We changed the Child Tax Credit award route and the uncapped Scottish tariff after that commit, and both affect only pensioners with children or with capital over £16,000. The compared households include neither, and `test_matches_origin_main_on_unchanged_households` reruns the 23 fixed ones against frozen origin/main values on this head.
**Mutations.** Each mutant, a scratch copy of this branch, ran against the YAML file it targets under a 2 GB memory cap, and every one fails:
| Mutation | YAML file | Result |
| --- | --- | --- |
| Award inference ignores `gov.dwp.tax_credits.active` | child amounts | 1 failed, 21 passed: Case 22 (12,985.44 against 8,656.96) |
| Award inference runs only when `gov.dwp.tax_credits.active` reads false | child amounts | 2 failed, 20 passed: Case 20 (8,656.96 against 12,985.44) and Case 22 (12,985.44 against 8,656.96) |
| Award read only from a positive final `child_tax_credit`, dropping nil-rate awards | child amounts | 1 failed, 21 passed: Case 20 (8,656.96 against 12,985.44) |
| Award inference drops `would_claim_CTC`, so eligibility alone counts | child amounts | 1 failed, 21 passed: Case 21 (12,985.44 against 8,656.96) |
| Tariff added inside the income floor | tariff income | 1 failed, 16 passed: Case 17 (applicable income 0 against 52) |
| The closure condition also drops an entered final award | child amounts | 1 failed, 22 passed: Case 23 (8,656.96 against 12,985.44) |
| Award gate keeps `would_claim_CTC` and drops `is_CTC_eligible` | child amounts | 1 failed: Case 19 (12,985.44 against 8,656.96) |
| Award read only from the claim and eligibility, ignoring an entered final award | child amounts | 1 failed: Case 18 (8,656.96 against 12,985.44) |
| England's two-child limit dropped | child amounts | 2 failed: Cases 9 and 19 |
| Child amounts without the pensioner test | child amounts | 1 failed: Case 17, the working-age control |
| Tariff rounds down (`np.floor` for `np.ceil`) | tariff income | 4 failed: Cases 2, 5, 8 and 17, the £10,001 cases |
| Scotland's tariff capped at £16,000 | tariff income | 1 failed: Case 15 (624 against 1,040) |
| Wales's tariff uncapped | tariff income | 1 failed: Case 16 (1,040 against 624) |
| England's tariff uncapped | tariff income | 1 failed: Case 11 (1,040 against 624) |
The first six ran on this head's code: the first five at `c5b07aec7`, which had 22 child cases, and the sixth at `e8831fb6b`. At `c5b07aec7` the sixth passed all 22, because no case entered an award under a closed scheme; Case 23 enters one and fails under it. The other eight ran on the code before the closure condition, and their failing cases set no reform. The condition changes a result only where `gov.dwp.tax_credits.active` reads false while England's limit runs, which current-law parameters never combine, so it leaves those cases unchanged.
## Reproducer
Reproducer: `policyengine_uk/tests/test_council_tax_reduction_pensioner_children_tariff_properties.py::test_adding_a_dependent_child_never_lowers_the_applicable_amount`, `policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_pensioner_child_amounts.yaml`, `policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_pensioner_tariff_income.yaml`
axiom: TheAxiomFoundation/rulespec-uk#522 queued
The Welsh child amount, family premium and tariff modules in rulespec-uk agree for 2026-27. The child and family-premium modules apply 87.88 and 20.22 from `0001-01-01`, so they cannot reproduce the 2021-22 amounts of 66.90 and 17.45. In the queued issue we cover that history, England's child amount, family premium and applicable amount, and Scotland's corresponding outputs. A signed encoder run needs separate approval. The pinned release holds England's provisions, including Sch 1 para 37; Scotland's reg 27 and Sch 1 para 3, and all earlier-year versions, need ingest and a new pin.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Head:06e51a8ab57d5c2bce6f98c3b2f0f763b17b6a0a on branch claude/ctr-pensioner-children-nits-7654i7. It is one commit on e8831fb6b295d0c959b4694913574366997b26b3 and fast-forwards from it. My harness only lets me push to claude/... branches, so fix-1933-ctr-pensioner-children stays at e8831fb6b.
Draft PR:#2826 (draft, base main, head 06e51a8ab). I opened it once, from the title and body posted in the two comments above.
Before starting. The last push to fix-1933-ctr-pensioner-children was e8831fb6b at 2026-11-02T07:53:59Z, about 8 hours before I started (repository activity API). No PR existed for the branch, and no comment on this issue said anyone was mid-change. I posted the pickup comment before pushing.
Findings
P3-3, Case 23's comment.policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_pensioner_child_amounts.yaml:750-755. I used the review's replacement but kept the instrument, as the brief asked. The last two lines read # 2024-25 amount at 83.24 a week (Sch 2 para 2(1), as SI 2024/29 reg 6(3) / # substituted it), so 3 * 83.24 * 52 = 12,985.44. The comment shrank from seven lines to six. The longest line has 77 characters, the same as the longest indented comment already in the file. Both of the old ambiguous uses of "it" now name their subject ("counting under (1C)", "the award"). The one "it" left is the brief's own wording, and its subject is "the 2024-25 amount".
P3-4, the tariff docstring.policyengine_uk/variables/gov/local_authorities/council_tax_reduction/council_tax_reduction_pensioner_tariff_income.py:19-22, the documentation string. It now says "…which equal those the Secretary of State, the Welsh Ministers and the Scottish Ministers set for their Council Tax Reduction schemes." This is the review's wording.
P3-1, P3-2 and P3-5. The hub had already resolved these. I made no other change to the body.
Text-only check
I compared every file that differs between e8831fb6b and 06e51a8ab, using a script (text_only.py, kept in my scratchpad):
For the Python file, I compared ast.dump after blanking module, class and function docstrings and every documentation = … assignment. Result: EQUAL. The raw ASTs differ, as they should, because only the documentation string changed.
For the YAML file, I compared yaml.safe_load output, which drops comments. Result: EQUAL.
Result: TEXT ONLY. No other file differs (git diff --stat: 2 files, 9 insertions, 8 deletions).
Tests at 06e51a8ab
I ran everything after uv sync --frozen --extra dev, with HUGGING_FACE_TOKEN and POLICYENGINE_UK_DEFAULT_DATASET unset.
.github/check_fix_pr.py on the final title and body, with changes.bin built as the workflow builds it (merge base 2da212abc to head) and no labels: Fix evidence: PASS. It reports "Fix PR has valid reproducer evidence. Changed executable tests: 8."
Lint:
uvx ruff@0.17.2 format --check .: 2168 files already formatted.
uvx ruff@0.17.2 check . and check --select F811,F821 policyengine_uk: all checks passed.
git diff --check from e8831fb6b and from the merge base 2da212abc to head: clean.
Merge with current main.git merge-tree --write-tree --name-only origin/main HEAD with main at 46a60678f gives no conflicts.
Overlap table. I reran git merge-tree --write-tree --name-only with git 2.43.0 for every head in the table, against 06e51a8ab, e8831fb6b and 2da212abc. Every count matches the table, and Treat income derived from capital as capital in the legacy means tests #1995 still adds only council_tax_reduction_pension_credit.yaml. The conflict sets are the same at the old head and the new head.
I ran no mutation or revert checks. The change touches comments and documentation only, and the AST and YAML comparison above shows that the tested logic is unchanged.
PR body changes, all of them
The body gives this branch's head in three places, and each now reads 06e51a8ab where it read e8831fb6b:
the Overlap section's intro sentence;
the Results intro sentence "From it to this head, …";
the Lint bullet.
The bullets for the files I touched now end "at 06e51a8ab": the child amounts YAML, the tariff YAML and test_parameter_descriptions.py. The counts stay 23, 17 and 24.
Everything else is as the hub wrote it, including the Fixes #1933, Reproducer: and axiom: lines. Bullets that report runs at e8831fb6b or older commits still name those commits. The intro sentence "Unless a bullet names a commit, the run used e8831fb6b" stays true.
Skipped
The full suite and any survey-data test. CI covers them.
I didn't add the code_health count to the body, because the brief limited body edits to the lines for the files I touched. It appears only in this comment.
Judgement calls
I opened the PR from claude/ctr-pensioner-children-nits-7654i7 rather than fast-forwarding fix-1933-ctr-pensioner-children, because my harness pins pushes to that branch.
In P3-3 I kept the brief's two closing lines word for word, including "substituted it". The subject of "it" is "the 2024-25 amount", so I judged it unambiguous.
I treated the push of e8831fb6b at 07:53Z as outside the 6-hour window: it was more than 8 hours before I started, and it is the head the brief names.
Activity
MaxGhenis commentedon Oct 1, 2026
Partly covered:
council_tax_reduction_applicable_amountneeds the same split.Not yet covered:
Reword the #1933 changelog fragment
Name the actors in the pensioner CTR comments and descriptions
MaxGhenis commentedon Nov 2, 2026
Ready for hub review
Verdict: APPROVE WITH NITS at
e8831fb6b295d0c959b4694913574366997b26b3(delta fromc5b07aec7e28d84114efe49600eb54e055a85c14, on main2da212abcf2086337fc088a4a1236f4ae7b6af63)There are no P1 or P2 findings, and five P3s. I checked the head out detached in a scratch worktree and ran everything below there with
uv sync --frozen --extra dev, withHUGGING_FACE_TOKENandPOLICYENGINE_UK_DEFAULT_DATASETunset. I changed no branch.Findings
P3-1. Test plan: the Pension Credit property file now has a full result at this head, and four files "did not run locally"
PR_BODY.md, Results. Ruling 7 asked for every unrun statement to be replaced. Two bullets still give partial or no results, and both now have full runs ate8831fb6b:Replace the Pension Credit bullet with:
Replace the
test_claims_all_entitled_benefits.pybullet's "atc5b07aec7" with nothing, since the result is the same at this head. Replace the "CI runs the other property files…" bullet with:P3-2. Overlap table: one stale SHA, one count I can't reproduce, and one PR missing
PR_BODY.md, "Overlap with open PRs and issues". I rangit merge-tree --write-tree --name-only <base> <head>with explicit SHAs againste8831fb6band2da212abc, using git 2.43.0:fix-2120-uc-carer-awardsnow points at260f6a77e, two commits after4613ac60f(git rev-list --count 4613ac60f..260f6a77egives 2; pushed 2026-11-02 05:18 −05:00). It still merges clean and still has no PR (gh api "repos/PolicyEngine/policyengine-uk/pulls?head=PolicyEngine:fix-2120-uc-carer-awards&state=all" --jq lengthgives 0). Replace4613ac60fwith260f6a77e, or re-read the SHA just before opening the PR.779f5dcfdI get 3 files against main and against this branch:CHANGELOG.md,policyengine_uk/tests/test_means_test_income_properties.pyandpyproject.toml. The body says 1. The two commits have more than one merge base (git diff 2da212abc...779f5dcfdwarns "multiple merge bases"), soort's virtual base can depend on the git version. This PR adds no conflict either way. Rerun on the hub's git and report its count, or change the row to#1966 779f5dcfdwith its own count.fix-1971-enhanced-disability,43a545dcb, a draft opened 2026-11-01) touches the pension-age premiums and merges clean against both. If you want the table complete, add| #2808 \43a545d` | none | none |` to the clean row.P3-3. Case 23 comment: an ambiguous "it", and an instrument nobody here quoted
council_tax_reduction_pensioner_child_amounts.yaml:750-756. The author flagged the "it". Separately, the comment says the 83.24 comes from "Sch 2 para 2(1), as SI 2024/29 amended it". The parameter file cites "SI 2012/2885 Sch. 2 para. 2, as in force on 30 April 2024" (england/.../child_or_young_person.yaml:44), and no input to this review quotes SI 2024/29, so I couldn't check that citation. The figure itself holds: 3 × 83.24 × 52 = 12,985.44, and the parameter reads 83.24 for model year 2024. Replacement:Keep "as SI 2024/29 amended it" only if someone confirms SI 2024/29 is the 2024 amending instrument. The change touches comments only and needs no rerun.
P3-4. Tariff docstring: "also set" misattributes the Housing Benefit amounts
council_tax_reduction_pensioner_tariff_income.py:19-21reads "We use the pension-age Housing Benefit tariff amounts, which the Secretary of State, the Welsh Ministers and the Scottish Ministers also set." The Welsh and Scottish Ministers don't set Housing Benefit amounts; they set equal amounts in their own schemes. Replacement:P3-5. The author's report miscounts the parameter files changed
The author's report says "four parameter files" differ. The diff touches six parameter files (
git diff --stat c5b07aec7 e8831fb6b). Four changed theirdescription. The other two (England and Scotlandchild_or_young_person.yaml) changed only YAML comments. The body says "four parameter descriptions", which is right. Nothing to change in the PR; I'm noting it only so the hub's record is right.Checked and sound
No formula changed. I parsed every changed file at both commits. The Python ASTs match once docstrings and
documentation/labelassignments are stripped, for all 8 Python files. Each of the 6 parameter files parses equal oncedescriptionis removed. The four test YAMLs match case for case, and the child file's 22 old cases form an exact prefix of the 23 new ones.Round-3 findings. P3-1: the
review_findingblock in the brief's copy ofAXIOM_ISSUE.mdhas>on the line between S6 and W3, so it reads as one quote. P3-2: line 108 ofdocs/book/assumptions/housing-benefit-child-allowances.mdat2da212abcreads "deferred. This includes the proposal to implement only unrestricted periods.", and the draft quotes that sentence. P3-3: closed apart from the new drift in P3-2 above; Council Tax Reduction income deducts the family's whole income tax, not the tax the schemes allow #2090 is open with no PR (gh api repos/.../issues/2090givesopen, and a search for open PRs gives 0). P3-4: closed, see the reproducer below. P3-5: the comment and docstring rows in the delta read as the table asked. The be-verb grep on the added lines finds only one quotation ("is payable") and two adjectives.Case 23 and its mutant. The three test YAMLs pass at head: child 23, tariff 17, child benefit 8. The whole CTR YAML directory gives 371 passed. I rebuilt the gate mutants at
e8831fb6bin a scratch worktree by replacing single lines, and each one fails:(child_tax_credit > 0) & active)[8656.96] differs from 12985.44if True)if False)Other tests at head.
test_parameter_descriptions.py24 passed.test_council_tax_reduction_pensioner_children_tariff_properties.pyandtest_council_tax_reduction_child_benefit_properties.pygave 10 passed together. The new child-benefit docstring matches the assertion it describes (award = old award + 0.2 × Child Benefit).Lint.
uvx ruff@0.17.2 format --checkandcheckon the 8 changed Python files,check --select F811,F821 policyengine_uk, andgit diff --check 2da212abc e8831fb6bare all clean.Premiums draft (P3-4 of round 3). I reran A0-A4 and A2c in all three nations at head and at
2da212abc. Head gives 17,881.76, 18,933.20 and 19,024.20; A2c awards of 1,233.55, 1,443.84 and 1,454.11 on applicable income of 21,714.00, 21,714.00 and 21,753.67;council_tax_reduction_premiums0; andhousing_benefit_child_disability_premiums6,159.40 for A2 and 4,391.92 for A3 and A4. Main gives 13,312.00 for every case and A2c awards of 319.60, 319.60 and 311.67. The statutory columns' arithmetic holds.Body figures I reran. The Which years table matches the parameter reads for 2015-2027 (2027: 90.96, 20.93 and 113.69 after rounding).
tax_credits.activereads true until 2024 and false from 2025. The savings-credit-only 90-year-old gives Pension Credit income of 13,314 and 13,938, applicable income of 13,872.62 and 14,247.02, and tariff 0. The worked amounts hold: 87.88 × 52, 109.85 × 52, 20.22 × 52, 118.45 × 52, and 24,736.40 for two Scottish children.Line references.
MAIN_DEDUCTIONSsits at line 291, and the recomputation runs from line 374 to the tariff addition at 394-396.council_tax_reduction_applicable_amount.py:102-117matches the draft.council_tax_reduction_premiums.py,benefits_premiums.py,housing_benefit_child_disability_premiums.py,housing_benefit_applicable_amount.py,housing_benefit_family_premium.pyand the docs page are byte-identical at main and head (git diff --quiet).Only Case 22 and Case 23 set
gov.dwp.tax_credits.activeto false.claims_universal_credit.yaml:477sets it to true, as the body says.Changelog
changelog.d/1933.fixed.mdis unchanged and passes.What I couldn't check
council_tax_reduction_applicable_income's documentation ("Scottish councils count none of them") rest on provisions nobody quoted.words_only.py, logs and witness folders. I replaced them with my own AST and YAML comparison above.#1966count difference may come from the git version; I ran only git 2.43.0.c91e960cf;test_savings_credit_only_receipt_properties.pyatf5c75cbfc; the 2,145-value differential at15f986ada; the fails-on-main counts; the eight pre-gate mutants (I reran only the six gate mutants); the 28-run gate probe; and the 2011-2014ParameterNotFoundErrorsentence.check_block_companions.py.Generated by Claude Code
MaxGhenis commentedon Nov 2, 2026
Picking this up for the UK hub. Reply here if you're mid-change and I'll stop.
Generated by Claude Code
MaxGhenis commentedon Nov 2, 2026
PR_TITLE.txtGenerated by Claude Code
MaxGhenis commentedon Nov 2, 2026
PR_BODY.mdGenerated by Claude Code
MaxGhenis commentedon Nov 2, 2026
Ready for hub review
Head:
06e51a8ab57d5c2bce6f98c3b2f0f763b17b6a0aon branchclaude/ctr-pensioner-children-nits-7654i7. It is one commit one8831fb6b295d0c959b4694913574366997b26b3and fast-forwards from it. My harness only lets me push toclaude/...branches, sofix-1933-ctr-pensioner-childrenstays ate8831fb6b.Draft PR: #2826 (draft, base
main, head06e51a8ab). I opened it once, from the title and body posted in the two comments above.Before starting. The last push to
fix-1933-ctr-pensioner-childrenwase8831fb6bat 2026-11-02T07:53:59Z, about 8 hours before I started (repository activity API). No PR existed for the branch, and no comment on this issue said anyone was mid-change. I posted the pickup comment before pushing.Findings
policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_pensioner_child_amounts.yaml:750-755. I used the review's replacement but kept the instrument, as the brief asked. The last two lines read# 2024-25 amount at 83.24 a week (Sch 2 para 2(1), as SI 2024/29 reg 6(3)/# substituted it), so 3 * 83.24 * 52 = 12,985.44.The comment shrank from seven lines to six. The longest line has 77 characters, the same as the longest indented comment already in the file. Both of the old ambiguous uses of "it" now name their subject ("counting under (1C)", "the award"). The one "it" left is the brief's own wording, and its subject is "the 2024-25 amount".policyengine_uk/variables/gov/local_authorities/council_tax_reduction/council_tax_reduction_pensioner_tariff_income.py:19-22, thedocumentationstring. It now says "…which equal those the Secretary of State, the Welsh Ministers and the Scottish Ministers set for their Council Tax Reduction schemes." This is the review's wording.Text-only check
I compared every file that differs between
e8831fb6band06e51a8ab, using a script (text_only.py, kept in my scratchpad):ast.dumpafter blanking module, class and function docstrings and everydocumentation = …assignment. Result: EQUAL. The raw ASTs differ, as they should, because only the documentation string changed.yaml.safe_loadoutput, which drops comments. Result: EQUAL.git diff --stat: 2 files, 9 insertions, 8 deletions).Tests at
06e51a8abI ran everything after
uv sync --frozen --extra dev, withHUGGING_FACE_TOKENandPOLICYENGINE_UK_DEFAULT_DATASETunset.council_tax_reduction_pensioner_child_amounts.yaml: 23 passed.council_tax_reduction_pensioner_tariff_income.yaml, which tests the variable whose docstring changed: 17 passed.test_parameter_descriptions.py: 24 passed.policyengine_uk/tests/code_health -n 4: 3097 passed, 3 warnings..github/check_fix_pr.pyon the final title and body, withchanges.binbuilt as the workflow builds it (merge base2da212abcto head) and no labels: Fix evidence: PASS. It reports "Fix PR has valid reproducer evidence. Changed executable tests: 8."uvx ruff@0.17.2 format --check .: 2168 files already formatted.uvx ruff@0.17.2 check .andcheck --select F811,F821 policyengine_uk: all checks passed.git diff --checkfrome8831fb6band from the merge base2da212abcto head: clean.git merge-tree --write-tree --name-only origin/main HEADwith main at46a60678fgives no conflicts.git merge-tree --write-tree --name-onlywith git 2.43.0 for every head in the table, against06e51a8ab,e8831fb6band2da212abc. Every count matches the table, and Treat income derived from capital as capital in the legacy means tests #1995 still adds onlycouncil_tax_reduction_pension_credit.yaml. The conflict sets are the same at the old head and the new head.I ran no mutation or revert checks. The change touches comments and documentation only, and the AST and YAML comparison above shows that the tested logic is unchanged.
PR body changes, all of them
The body gives this branch's head in three places, and each now reads
06e51a8abwhere it reade8831fb6b:The bullets for the files I touched now end "at
06e51a8ab": the child amounts YAML, the tariff YAML andtest_parameter_descriptions.py. The counts stay 23, 17 and 24.Everything else is as the hub wrote it, including the
Fixes #1933,Reproducer:andaxiom:lines. Bullets that report runs ate8831fb6bor older commits still name those commits. The intro sentence "Unless a bullet names a commit, the run usede8831fb6b" stays true.Skipped
Judgement calls
claude/ctr-pensioner-children-nits-7654i7rather than fast-forwardingfix-1933-ctr-pensioner-children, because my harness pins pushes to that branch.e8831fb6bat 07:53Z as outside the 6-hour window: it was more than 8 hours before I started, and it is the head the brief names.Generated by Claude Code