Skip to content

Commit 9d3c109

Browse files
committed
Add policyengine-uk validation and fix SCP parameters
1 parent ad933df commit 9d3c109

12 files changed

Lines changed: 1182 additions & 229 deletions

File tree

.github/workflows/validate.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Validate
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "src/**"
7+
- "parameters/**"
8+
- "scripts/**"
9+
- "Cargo.toml"
10+
- "Cargo.lock"
11+
- ".github/workflows/validate.yml"
12+
push:
13+
paths:
14+
- "src/**"
15+
- "parameters/**"
16+
- "scripts/**"
17+
- "Cargo.toml"
18+
- "Cargo.lock"
19+
- ".github/workflows/validate.yml"
20+
21+
jobs:
22+
validate:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: dtolnay/rust-toolchain@stable
28+
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.13"
32+
33+
- name: Run Rust tests
34+
run: cargo test
35+
36+
- name: Build Rust CLI
37+
run: cargo build
38+
39+
- name: Install PolicyEngine UK reference model
40+
run: python -m pip install --upgrade pip policyengine-uk==2.72.3
41+
42+
- name: Validate against PolicyEngine UK
43+
run: python scripts/validate_against_policyengine_uk.py --rust-binary target/debug/policyengine-uk-rust

LEGISLATIVE_REFERENCE.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -719,14 +719,15 @@ source, and — for projected years — the methodology used to derive them.
719719
SIs: SI 2023/233 and SI 2023/234 (2023/24); SI 2024/242 (2024/25); SI 2025/295 and SI 2025/292
720720
(2025/26).
721721

722-
**Projected years (2026/27 – 2029/30)**: derived from the OBR Economic and Fiscal Outlook March
723-
2026 growth factor forecasts. Benefits uprated by September CPI; state pension by the triple
724-
lock (max of CPI, earnings, 2.5%); income tax thresholds frozen until 2027/28 then CPI-uprated.
725-
726-
**Known issues in confirmed years** (to be fixed separately):
727-
- 2023/24 NI `main_rate` 0.115 is blended — the underlying rates are 12% and 10% (mid-year cut)
728-
- 2025/26 Scottish Child Payment `weekly_amount` should be £27.15 (SSI 2025/100), not £26.70
729-
- 2026/27 onward: Scottish Child Payment not uprated (still showing £26.70 — needs correction)
722+
**Projected years (2026/27 – 2029/30)**: generally derived from the OBR Economic and Fiscal
723+
Outlook March 2026 growth factor forecasts. Benefits uprated by September CPI; state pension by
724+
the triple lock (max of CPI, earnings, 2.5%); income tax thresholds frozen until 2027/28 then
725+
CPI-uprated. Scottish Child Payment follows the Scottish Fiscal Commission January 2026 forecast
726+
path already used in `policyengine-uk`.
727+
728+
**Known modelling approximations**:
729+
- 2023/24 NI `main_rate` 0.115 is represented as a fiscal-year blended annual rate to reflect the
730+
January 2024 mid-year cut from 12% to 10%
730731

731732
---
732733

parameters/2025_26.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ tax_credits:
154154

155155
scottish_child_payment:
156156
# Social Security (Scotland) Act 2018; SSI 2020/351
157-
# £26.70/week from November 2024
158-
weekly_amount: 26.70
157+
# £27.15/week from April 2025
158+
weekly_amount: 27.15
159159
max_age: 16.0
160160

161161
uc_migration:

parameters/2026_27.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ tax_credits:
104104

105105

106106
scottish_child_payment:
107-
weekly_amount: 26.70
107+
weekly_amount: 28.20
108108
max_age: 16.0
109109

110110
uc_migration:

parameters/2027_28.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ tax_credits:
102102

103103

104104
scottish_child_payment:
105-
weekly_amount: 26.70
105+
weekly_amount: 28.85
106106
max_age: 16.0
107107

108108
uc_migration:

parameters/2028_29.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ tax_credits:
103103

104104

105105
scottish_child_payment:
106-
weekly_amount: 26.70
106+
weekly_amount: 29.45
107107
max_age: 16.0
108108

109109
uc_migration:

parameters/2029_30.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ tax_credits:
102102

103103

104104
scottish_child_payment:
105-
weekly_amount: 26.70
105+
weekly_amount: 30.05
106106
max_age: 16.0
107107

108108
uc_migration:

0 commit comments

Comments
 (0)