Repository navigation
Use UK income tax schedules in Scotland before 2017-18 - #2963
juaristi22 wants to merge 2 commits into
Conversation
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in Notes
Moves flagged for reviewNone. Spending by benefit and service
Caseloads
Household net income by decileNo household's net income changes in any year. No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkThe check raised each of 92 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.
Provenance
Dataset: Receipts by tax head: head levels
Spending by benefit and service: head levels
Caseloads: head levels
Government balance, each component counted once: head levels
Model totals: head levels
Household income totals: head levels
Population: head levels
Poverty rates: head levels
People in poverty: head levels
Inequality: head levels
Mean household net income in each side's own deciles: head levels
Standard reform costings (change in gov_balance): head levels
Standard reforms: change in each reform's target: head levels
|
Fixes #2866
Scottish earned and property income currently use the 2017-18 Scottish bands in 2015-16 and 2016-17. Use the UK main scale for those earlier years, and retain the existing Scottish formulas from 2017-18 and the separate 2027-28 property formula.
For a single adult with £43,000 employment income in 2016-17, final income tax falls from £6,500 to the correct £6,400. Property income follows the same historical routing. Ten new YAML cases cover employment, property, mixed income, the 2016 basic-rate boundary, existing geography/later-year behavior, and allowance allocation with savings income. The allocator now also uses the UK scale before 2017-18. For £42,500 pay plus £1,500 savings in 2016-17, this corrects a retained £100 Scottish overcharge: final tax becomes £6,600 in both countries. The existing Marriage Allowance property test now includes the previously masked Scottish cases in 2016-17.
Draft dependency: #2899 corrects the shared UK 2015-16 basic-rate limit from £32,000 to £31,785. This PR activates that UK parameter for Scotland and must wait for that correction. At £42,500 pay in 2015-16, the current parameter produces £6,380 income tax instead of £6,403 under the statutory £31,785 limit. A separately labelled in-memory £31,785 control demonstrates the dependency; it is not a passing production test. The new 2015 regression cases use £31,600 taxable income, below both limits, and do not establish correctness across the whole 2015 schedule.
Sources: the first Scottish-rate tax year, the 2016 statutory rate mechanism, HMRC's 2016-17 rates and limits, and the Scottish Parliament's 2016-17 resolution.
Reproducer:
policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/scotland_pre_2017.yamlaxiom: needed
Validation: the original nine cases reproduced six final-tax failures and passed three controls before the routing fix. The independently added allocator case then failed at £6,700 versus £6,600 before its repair. After both fixes, 530 income-tax YAML cases across 50 selected files and 190 focused Python tests across six files passed, with no failures, errors or skips.
make formatpassed with no further file changes. Independent verification confirmed the allocator repair (1/1 planned fix), and review of the final commit resolved that finding. The only remaining confirmed blocker is the separately covered #2899 threshold dependency. The separate 2015 dependency diagnostic records a known production legal failure, as described above. Full-country, private-data and population suites are not run locally.The independent local review found the separate 2015 threshold dependency and the missed allocator route. The allocator finding is resolved; the threshold dependency remains a blocker. The allowance allocation rule is ITA 2007 s. 25(2); Finance Act 2016 s. 4 supplies the 2016-17 savings nil-rate rules.