Skip to content

Count Universal Credit before debt deductions in four councils' CTR #2799

Closed

Description

@MaxGhenis

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, count universal_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_income already counts the Oxford award that way, and _legacy.py stays 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

  1. MaxGhenis commented on Nov 2, 2026

    @MaxGhenis
    CollaboratorAuthor

    Ready for hub review

    Head tested: afeddde02e9f861ccd9df3587b7f53dbfedc3606 on fix-2799-ctr-uc-award, detached checkout. The branch tip has since moved to 21bc1163b214fa3cda4756030cd5d7684965937c (two later commits: 5fff4ca7 "Add pension, savings, non-dependant, benefit cap and floor CTR deduction cases" and 21bc1163 "Name the actors in the CTR deduction YAML comments"). As briefed, I tested afeddde only; nothing below covers those two commits.

    Set-up: cloud VM, 4 vCPU, 16 GB. uv sync --frozen --extra dev. HUGGING_FACE_TOKEN and POLICYENGINE_UK_DEFAULT_DATASET unset. All pytest runs used -n 4; no memory trouble. Wall time is measured around the whole uv run command.

    # Command Exit Passed Failed Skipped Xfailed Wall
    1 uv run pytest -q -o xfail_strict=true -n 4 policyengine_uk/tests/test_benefit_cap_and_ctr_pension_age_properties.py 0 2 0 0 0 243 s (pytest: 229.18 s)
    2 uv 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) 0 10 0 0 0 10 s
    3 uv run pytest -q -o xfail_strict=true -n 4 policyengine_uk/tests/test_council_tax_reduction_uc_deductions_properties.py (head) 0 1 0 0 0 24 s
    4a entry 2 with _legacy.py from 2da212ab 1 4 6 0 0 11 s
    4b entry 3 with _legacy.py from 2da212ab 1 0 1 0 0 23 s
    5a entry 2, precap mutant 0 10 0 0 0 10 s
    5b entry 3, precap mutant 0 1 0 0 0 24 s
    5c entry 2, unearned mutant 0 10 0 0 0 11 s
    5d entry 3, unearned mutant 0 1 0 0 0 24 s
    6a uv run python /tmp/witness_batch.py (head) 0 – – – – 23 s
    6b witness, precap mutant 0 – – – – 24 s
    6c witness, unearned mutant 0 – – – – 23 s
    7 uv run policyengine-core test policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction -c policyengine_uk 0 341 0 0 0 61 s

    Every run also printed one PytestAssertRewriteWarning (anyio) warning. No test skipped for want of a dataset; the YAML runs printed the header line microsimulation data (optional): skip on none.

    Failures at the head

    None. Entries 1, 2, 3 and 7 passed.

    Entry 4: base comparison (_legacy.py from 2da212abcf2086337fc088a4a1236f4ae7b6af63)

    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:

      Test 'Merton counts the Universal Credit award before a 600 debt deduction':
        council_tax_reduction@2026: [2000.] differs from 1880.0 with an absolute margin [120.] > 0.01
    _________________________________ test session _________________________________
    /home/user/policyengine-uk/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml:
      Test 'Kingston upon Thames counts the Universal Credit award before a 600 debt deduction':
        council_tax_reduction@2026: [2000.] differs from 1880.0 with an absolute margin [120.] > 0.01
    _________________________________ test session _________________________________
    /home/user/policyengine-uk/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml:
      Test 'Newham counts the Universal Credit award before a 600 debt deduction':
        council_tax_reduction@2026: [1070.] differs from 920.0 with an absolute margin [150.] > 0.01
    _________________________________ test session _________________________________
    /home/user/policyengine-uk/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml:
      Test 'Westminster counts the Universal Credit award before a 600 debt deduction':
        council_tax_reduction@2026: [2000.] differs from 1880.0 with an absolute margin [120.] > 0.01
    _________________________________ test session _________________________________
    /home/user/policyengine-uk/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml:
      Test 'Newham counts the Universal Credit award before a deduction at the cap':
        council_tax_reduction@2026: [1111.2048] differs from 920.0 with an absolute margin [191.20483] > 0.01
    _________________________________ test session _________________________________
    /home/user/policyengine-uk/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_universal_credit_deductions.yaml:
      Test 'Merton counts the Universal Credit award after the benefit cap and before a deduction at the cap':
        council_tax_reduction@2026: [2272.964] differs from 2120.0 with an absolute margin [152.96411] > 0.01
    

    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_deductions failed:

    >       assert np.allclose(council[plus][has_award], council[base][has_award], atol=0.01), [
                (fams[k], council[2 * k], council[2 * k + 1], deductions[2 * k + 1])
                for k in np.flatnonzero(
                    has_award & ~np.isclose(council[plus], council[base], atol=0.01)
                )[:3]
            ]
    E       AssertionError: [({'council': 'MERTON', 'earnings': [8000.0, 0.0], 'rent': 7800.0, 'council_tax': 2600.0, ...}, np.float32(1879.9998),..., 0.0], 'rent': 7800.0, 'council_tax': 2600.0, ...}, np.float32(1316.3597), np.float32(1469.3239), np.float32(764.82))]
    E       assert False
    E        +  where False = <function allclose at 0x7f711091b170>(array([2032.9639, 1695.1821, 1469.3239, 1672.9639, 1520.273 , 2600.    ,\n       2356.4695], dtype=float32), array([1879.9998, 1295.    , 1316.3597, 1519.9998,  920.    , 2600.    ,\n       2116.36  ], dtype=float32), atol=0.01)
    E        +    where <function allclose at 0x7f711091b170> = np.allclose
    E       Failing explicit example: test_four_councils_count_the_universal_credit_award_before_deductions(
    

    After git checkout HEAD -- .../_legacy.py, git status --porcelain printed nothing.

    Entry 5: mutants

    Applied with /tmp/select_mutation.py exactly as given in the brief.

    • precap (sha256 2a147274f2d22277e66637b6d7b966ce0185ae7d06af6482057a332370fd72a3): survived. Entry 2 passed 10/10 and entry 3 passed 1/1. No named test failed.
    • unearned (sha256 111864d25a186516d3c0b23f1ff146e4ed7f8bb706489cb364ce659a604335c6): survived. Entry 2 passed 10/10 and entry 3 passed 1/1. No named test failed.

    After each, git checkout -- .../_legacy.py ran and git status --porcelain printed nothing.

    Entry 6: witnesses

    Differences from the head output (computed by comparing the JSON rows):

    • precap: protected_floor_reformed simulated_council_tax_reduction_benunit 1880.0 → 2120.0. No other row changed.
    • unearned: private_pension_with_debt 1879.999755859375 → 2000.0; tariff_with_debt 1880.000244140625 → 2000.000244140625 (both simulated_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_debt and protected_floor, uc_benefit_cap_reduction is 1200.0, uc_deductions is 0.0 (printed uc_has_deduction true, uc_deduction_rate 0.15000000596046448, uc_deduction_random_draw 1.0, uc_deductions 0.0; the same in protected_floor_reformed), universal_credit is 16967.0 and simulated_council_tax_reduction_benunit is 2120.0. With the 0.85 protected floor (protected_floor_reformed): uc_benefit_cap_reduction 1200.0, uc_benefit_cap_reduction_after_floor 0.0, universal_credit 18167.0, simulated_council_tax_reduction_benunit 1880.0.

    The script does not print council_tax_reduction itself, so I ran a short extra script (/tmp/ctr_extra.py) that imports the witness script's two simulations and calculates council_tax_reduction and uc_benefit_cap_reduction for three rows. Its output, verbatim apart from the uv deprecation warning line:

    baseline actual_cap_no_debt uc_benefit_cap_reduction 1200.0 council_tax_reduction 2120.0
    baseline actual_cap_with_debt uc_benefit_cap_reduction 1200.0 council_tax_reduction 2120.0
    baseline protected_floor uc_benefit_cap_reduction 1200.0 council_tax_reduction 2120.0
    floor_0.85 actual_cap_no_debt uc_benefit_cap_reduction 1200.0 council_tax_reduction 2032.964111328125
    floor_0.85 actual_cap_with_debt uc_benefit_cap_reduction 1200.0 council_tax_reduction 1880.0
    floor_0.85 protected_floor uc_benefit_cap_reduction 1200.0 council_tax_reduction 1880.0
    

    Witness output at the head (verbatim)

    warning: The `UV_NATIVE_TLS` environment variable is deprecated and will be removed in a future release. Use `UV_SYSTEM_CERTS` instead.
    {
      "helper1995": false,
      "rows": [
        {
          "name": "scope_MERTON_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_MERTON_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_KINGSTON_UPON_THAMES_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_KINGSTON_UPON_THAMES_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_NEWHAM_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 919.999755859375
        },
        {
          "name": "scope_NEWHAM_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 919.999755859375
        },
        {
          "name": "scope_WESTMINSTER_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_WESTMINSTER_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_OXFORD_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "scope_OXFORD_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "full_CTR_no_earnings_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 0.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 12898.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 12898.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "full_CTR_no_earnings_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 0.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 12898.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 12298.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "actual_cap_no_debt",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "actual_cap_with_debt",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "private_pension_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 1000.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 7498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 6898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "private_pension_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 1000.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 7498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 7498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "tariff_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 417.5999755859375,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8081.19970703125,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7481.19970703125,
          "simulated_council_tax_reduction_benunit": 1880.000244140625
        },
        {
          "name": "tariff_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 417.5999755859375,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8081.19970703125,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8081.19970703125,
          "simulated_council_tax_reduction_benunit": 1880.000244140625
        },
        {
          "name": "oversize_9000",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 9000.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "oversize_8499",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 8499.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "protected_floor",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "no_claim_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 0.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "pensioner_with_debt",
          "uc_maximum_amount": 0.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 0.0,
          "uc_benefit_cap": Infinity,
          "is_uc_benefit_cap_exempt": true,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "protected_floor_reformed",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 18167.0,
          "simulated_council_tax_reduction_benunit": 1880.0
        }
      ]
    }
    

    Witness output, precap selected (verbatim)

    warning: The `UV_NATIVE_TLS` environment variable is deprecated and will be removed in a future release. Use `UV_SYSTEM_CERTS` instead.
    {
      "helper1995": false,
      "rows": [
        {
          "name": "scope_MERTON_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_MERTON_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_KINGSTON_UPON_THAMES_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_KINGSTON_UPON_THAMES_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_NEWHAM_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 919.999755859375
        },
        {
          "name": "scope_NEWHAM_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 919.999755859375
        },
        {
          "name": "scope_WESTMINSTER_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_WESTMINSTER_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_OXFORD_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "scope_OXFORD_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "full_CTR_no_earnings_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 0.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 12898.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 12898.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "full_CTR_no_earnings_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 0.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 12898.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 12298.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "actual_cap_no_debt",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "actual_cap_with_debt",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "private_pension_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 1000.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 7498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 6898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "private_pension_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 1000.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 7498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 7498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "tariff_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 417.5999755859375,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8081.19970703125,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7481.19970703125,
          "simulated_council_tax_reduction_benunit": 1880.000244140625
        },
        {
          "name": "tariff_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 417.5999755859375,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8081.19970703125,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8081.19970703125,
          "simulated_council_tax_reduction_benunit": 1880.000244140625
        },
        {
          "name": "oversize_9000",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 9000.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "oversize_8499",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 8499.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "protected_floor",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "no_claim_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 0.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "pensioner_with_debt",
          "uc_maximum_amount": 0.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 0.0,
          "uc_benefit_cap": Infinity,
          "is_uc_benefit_cap_exempt": true,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "protected_floor_reformed",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 18167.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        }
      ]
    }
    

    Witness output, unearned selected (verbatim)

    warning: The `UV_NATIVE_TLS` environment variable is deprecated and will be removed in a future release. Use `UV_SYSTEM_CERTS` instead.
    {
      "helper1995": false,
      "rows": [
        {
          "name": "scope_MERTON_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_MERTON_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_KINGSTON_UPON_THAMES_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_KINGSTON_UPON_THAMES_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_NEWHAM_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 919.999755859375
        },
        {
          "name": "scope_NEWHAM_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 919.999755859375
        },
        {
          "name": "scope_WESTMINSTER_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_WESTMINSTER_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "scope_OXFORD_0",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8498.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "scope_OXFORD_600",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7898.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "full_CTR_no_earnings_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 0.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 12898.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 12898.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "full_CTR_no_earnings_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 0.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 12898.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 12298.7998046875,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "actual_cap_no_debt",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "actual_cap_with_debt",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "private_pension_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 1000.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 7498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 6898.7998046875,
          "simulated_council_tax_reduction_benunit": 2000.0
        },
        {
          "name": "private_pension_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 1000.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 7498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 7498.7998046875,
          "simulated_council_tax_reduction_benunit": 1879.999755859375
        },
        {
          "name": "tariff_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 417.5999755859375,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8081.19970703125,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 7481.19970703125,
          "simulated_council_tax_reduction_benunit": 2000.000244140625
        },
        {
          "name": "tariff_no_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 417.5999755859375,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8081.19970703125,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 0.0,
          "universal_credit": 8081.19970703125,
          "simulated_council_tax_reduction_benunit": 1880.000244140625
        },
        {
          "name": "oversize_9000",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 9000.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "oversize_8499",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 8498.7998046875,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 8499.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "protected_floor",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 1200.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 16967.0,
          "simulated_council_tax_reduction_benunit": 2120.0
        },
        {
          "name": "no_claim_with_debt",
          "uc_maximum_amount": 12898.7998046875,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 0.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 1993.719970703125
        },
        {
          "name": "pensioner_with_debt",
          "uc_maximum_amount": 0.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 0.0,
          "uc_benefit_cap": Infinity,
          "is_uc_benefit_cap_exempt": true,
          "uc_benefit_cap_reduction": 0.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": false,
          "uc_deduction_rate": 0.0,
          "uc_deductions": 600.0,
          "universal_credit": 0.0,
          "simulated_council_tax_reduction_benunit": 2600.0
        },
        {
          "name": "protected_floor_reformed",
          "uc_maximum_amount": 22567.0,
          "uc_earned_income_before_work_allowance": 8000.0,
          "uc_unearned_income": 0.0,
          "uc_standard_allowance": 5098.7998046875,
          "universal_credit_pre_benefit_cap": 18167.0,
          "uc_benefit_cap": 16967.0,
          "is_uc_benefit_cap_exempt": false,
          "uc_benefit_cap_reduction": 1200.0,
          "uc_benefit_cap_reduction_after_floor": 0.0,
          "uc_deduction_random_draw": 1.0,
          "uc_has_deduction": true,
          "uc_deduction_rate": 0.15000000596046448,
          "uc_deductions": 0.0,
          "universal_credit": 18167.0,
          "simulated_council_tax_reduction_benunit": 1880.0
        }
      ]
    }
    

    Not done

    • Nothing in the brief was skipped. The two commits after afeddde were not tested.
    • --helper1995 was not run; the brief did not ask for it.

    Generated by Claude Code

  2. MaxGhenis commented on Nov 2, 2026

    @MaxGhenis
    CollaboratorAuthor

    Ready for hub review

    Verdict: APPROVE WITH NITS at dd39eafbb76982ec87020b96217a66f5b1ee0225 (delta from afeddde02e9f861ccd9df3587b7f53dbfedc3606).

    The formula is unchanged: the _legacy.py delta 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 "At afeddde02 the 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 the uc_award = … line in a scratch copy of _legacy.py, and I restored the file after each run (git status --porcelain printed nothing).

    uv run policyengine-core test <new YAML> -c policyengine_uk
    uv run pytest -q -o xfail_strict=true -n 4 policyengine_uk/tests/test_council_tax_reduction_uc_deductions_properties.py
    
    Mutant (uc_award =) New YAML (15 cases) Property test
    max_(universal_credit_pre_benefit_cap - uc_benefit_cap_reduction, 0) (precap) 1 failed: 85% floor case, [2120.] differs from 1880.0 1 passed (survives)
    universal_credit + where(uc_unearned_income == 0, uc_deductions, 0) (unearned) 2 failed: pension [2000.] and savings [2000.0002] against 1880 1 passed (survives)
    universal_credit_pre_benefit_cap 2 failed: both cap cases (entered and computed), 1,880 against 2,120 1 failed: invariant 3 (reference 2116.36 against 1316.36)
    universal_credit + 2 * uc_deductions 11 failed: every case with a deduction 1 failed: invariant 2
    universal_credit - uc_deductions 11 failed: every case with a deduction 1 failed: invariant 2

    The precap and unearned mutants are my reconstructions from the body's descriptions, because the author's select_mutation.py isn't on GitHub.

    Replacement for the five bullets:

    • Counting universal_credit_pre_benefit_cap less uc_benefit_cap_reduction, the award after the gross cap rather than the cap the model applies, fails the 85% floor case (£2,120 against £1,880). The property test misses it, since it runs current law only.
    • Adding the deductions back only where uc_unearned_income is nil fails the private pension and savings cases (£2,000 against £1,880). The property test misses it, since its households have no unearned income.
    • Counting universal_credit_pre_benefit_cap, the award before the cap, fails both benefit cap cases (£1,880 against £2,120) and the property test's invariant 3.
    • Adding the deductions back twice fails the 11 YAML cases with a deduction and the property test's invariant 2.
    • Subtracting the deductions fails the 11 YAML cases with a deduction and the property test's invariant 2.

    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:

    Count the Universal Credit award before debt deductions in working-age Council Tax Reduction for Merton, Kingston upon Thames, Newham and Westminster.

    P3-3. main has moved past the pinned SHA.

    origin/main is now a8ddb927c, 12 commits past 2da212abc. git merge-tree --write-tree --name-only dd39eafb a8ddb927c is clean, and git diff --stat 2da212abc a8ddb927c touches nothing under variables/gov/local_authorities or variables/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 current main before publishing.

    Previous findings and this round's rulings

    Item Status Evidence
    R1 P3-1 / ruling 1, annual cap figure Closed YAML header lines 24–27, cases at lines 256–260 and 295, the body's table rows and closing paragraph, and the packet's C6/C7 and D/E all label £764.82 as the model's annual figure. Hand check: 0.15 × 424.90 = 63.735, a half-penny fraction, so Sch 6 para 1(2) as quoted ("otherwise … treated as a penny") gives 63.74; × 12 = 764.88. C6: 8,498.80 − 764.88 = 7,733.92; 920 + 25% × 764.88 = 1,111.22. C7: 7,298.80 − 764.88 = 6,533.92; 2,120 + 20% × 764.88 = 2,272.976 → 2,272.98. Both reductions stay at 920 and 2,120. "PolicyEngine's amounts payable … exceed C6's and C7's by 6p": 7,733.98 − 7,733.92 = 0.06 ✓. All CTR expectations are unchanged.
    R1 P3-2 / ruling 2, Schedule 6 scope Closed _legacy.py:51–57 and 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.
    R1 P3-3 / ruling 3, deduction count Closed AXIOM_ISSUE.md C9 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 ✓.
    Ruling 4, "up to" claim and the no-earnings pair Closed Body line 9 reads "up to 20p per £1 … or 25p in Newham". No-earnings pair (cloud witness at afeddde02, formula unchanged): full_CTR_no_earnings_{no,with}_debt both give 2,600. By hand on main: 0 + 12,298.80 < 12,898.80, so the reduction stays full. The body's sentence matches.
    Ruling 5, #2760 and #1995 paragraphs Closed Each PR has its own paragraph. #2760: git diff 2da212abc 16d06d8c2 -- …/uc_deduction_rate.py swaps uc_latent_deduction_rate for assigned_latent_deduction_rate and 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.
    Ruling 6, voice Closed except P3-2 Durable comments carry no fix history. The footer stays. I can't see voice_max.md or the voice table, so I checked against the brief's writing rules only.
    Ruling 7, new cases Closed Every expectation checked by hand (below) and run.
    Ruling 8, runs Closed Rerun below. The author's statement that the pension-age file wasn't rerun is now moot: I ran it at this head.
    Ruling 9, merge-tree Closed, except 02cc0896f See below.

    Hand checks of the new cases

    All five new cases appear in council_tax_reduction_universal_credit_deductions.yaml. The body's table rows match.

    • Private pension (line 332): award 12,898.80 − 4,400 − 1,000 = 7,498.80; payable 6,898.80. Excess 8,000 + 1,000 + 7,498.80 − 12,898.80 = 3,600, giving 1,880. Counting the amount payable gives an excess of 3,000 and a reduction of 2,000 ✓.
    • Savings (line 368): (8,000 − 6,000)/250 = 8 steps × 4.35 × 12 = 417.60. Award 8,081.20; payable 7,481.20. Excess 3,600, giving 1,880; counting the amount payable gives 2,000 ✓. Kingston's capital_limit.yaml holds 16,000 from 2026-04-01 ✓.
    • Non-dependant (line 405): 96.55 × 12 = 1,158.60; maximum amount 11,740.20; award 7,340.20; payable 6,740.20. Excess 3,600. 2,600 − 720 − 5.20 × 52 (270.40) = 1,609.60. Counting the amount payable gives 1,729.60 ✓. Parameters exist at gov/dwp/universal_credit/elements/housing/non_dep_deduction/amount.yaml and gov/local_authorities/merton/council_tax_reduction/non_dep_deduction/amount.yaml.
    • Real cap household (line 453): 5,098.80 + 17,468.20 = 22,567; 22,567 − 4,400 = 18,167; 18,167 − 16,967 = 1,200 cap reduction. Payable 16,967 − 764.82 = 16,202.18. Excess 8,000 + 16,967 − 22,567 = 2,400, giving 2,120. Counting the amount payable: 2,600 − 20% × (2,400 − 764.82) = 2,272.964, or 2,272.96. Counting the award before the cap: 1,880 ✓.
    • 85% floor (line 502): In 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) sets floor_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, with HUGGING_FACE_TOKEN and POLICYENGINE_UK_DEFAULT_DATASET unset.

    Run Result Body says
    New YAML (15 cases) at head 15 passed 15 passed ✓
    New YAML with _legacy.py from 2da212abc 11 failed, 4 passed. The failures are the eleven cases with a deduction, giving 2000, 2000, 1070, 2000, 1111.2048, 2272.964, 2000, 2000.0002, 1729.6, 2272.964 and 2032.9641 11 failed, 4 passed; the main column ✓
    Property test at head 1 passed ✓
    Property test with main's _legacy.py 1 failed, allclose invariant 2; first family 2032.9639 against 1879.9998 fails invariant 2, £1,880 to £2,032.96 ✓
    CTR YAML directory (23 files) 346 passed 346 ✓
    test_benefit_cap_and_ctr_pension_age_properties.py at head 2 passed (219 s) 2 passed at afeddde02 ✓
    The seven untouched property files the body lists, at head child_benefit 3, claimant 3, prescribed_benefits 4, household_head_agreement 3, legacy_award_readers 18, pension_contribution_deduction_rate 2, claimant_family_scheme 3 passed (211 s; no timeout) the same counts at 5fff4ca73/21bc1163b ✓
    ruff@0.17.2 format --check and check on the two Python files; check --select F811,F821 policyengine_uk; git diff --check 2da212abc..HEAD all clean ✓

    What I couldn't check


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions