You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UK bonus sacrifice: meet OBR's base at the final weights, not the stage's #1390
The salary_sacrifice stage imputes pension_contributions_via_bonus_sacrifice (#1340, #1383). It picks bonus sacrificers in the order of identity-keyed draws, until the engine's projection of the sacrificed bonuses above the £2,000 threshold at 2027-28 is nearest OBR's base. That base is £13.0bn (OBR supplementary forecast information, 5 February 2026, Table 1.1).
The stage measures the projection at its own weights, before calibration. On #1383's review arm, the base at the final weights falls short of OBR's line by more than a quarter. The column is the same in both files; only the weights move. Vahid flagged the risk in his review of #1383 (item 7).
Why
Calibration to the HMRC SPI income-band rows lowers the weights of the highest earners, and the bonus sacrificers sit mostly there:
a candidate must be paid at least the upper earnings limit;
the larger bonuses belong to the higher earners;
most of the sacrificers are rows of the SPI channel, and calibration lowers those the most.
No calibration row reads the bonus base, so nothing holds it. The salary route does not drift this way, because the HMRC salary-sacrifice rows bind it. The figures behind this diagnosis rest in part on the SPI channel's households, so they stay with the licensed data.
Proposal
Re-pick the bonus sacrificers after calibration, at the final weights. This is a post-calibration step that reruns convert_bonuses_to_bonus_sacrifice on the calibrated weights, with the same identity-keyed order and the same anchor.
The sacrifice sits beside pay, so no calibrated income moves.
The £2,000 NICs cap reads it only from April 2029.
First, check that no bound row reads the pension contributions it adds to, for example through the annual allowance tests.
Where the step does not run, keep the stage's selection.
The alternative is to bind the base during calibration, as a row deflated to 2025 by the anchor's growth factors. That needs a ruling, since the build refuses facts dated after the calibration year (_refuse_fact_after_target).
Until then
#1383's Phase B and C receipts record that the base holds at the stage's weights only. A costing of the bonus-sacrifice cap on a release built before this lands would understate the base.
Plan review at main f44512d (policyengine-uk 2.174.1). I worked through the check the proposal asks for first: does any bound row read the bonus sacrifice? Some do, through the annual allowance charge.
Should
Bound income tax rows read the bonus column, so a re-pick after calibration moves them. In policyengine-uk 2.174.1:
pension_contributions_via_salary_sacrifice_from_pay.py:30-32 adds pension_contributions_via_bonus_sacrifice to the salary route;
pension_contributions_for_annual_allowance.py:67-70 counts that sum as pension input. It also feeds threshold and adjusted income for the taper (FA 2004 s. 228ZA(6), docs/engineering/pension-annual-allowance.md:115);
the chargeable amount becomes personal_pension_contributions_tax, which is a Step 7 charge (parameters/gov/hmrc/income_tax/step_7_additional_tax.yaml), so it lands in income_tax_before_winter_fuel_payment_charge.
That variable is the value_variable of obr.income_tax (uk_population_targets.json:2053), of hmrc.itl.income_tax_by_total_income_band, and of the hmrc.spi_region.income_tax_by_region_* rows, including the £200,000-and-over band where the sacrificers sit. Failure case: take a candidate with adjusted income above £360,000, so their allowance sits at the £10,000 floor, and £20,000 of employer contributions. Without the bonus their chargeable amount is £10,000. Sacrificing a £30,000 bonus raises it to £40,000, which adds roughly £13,500 of charge at 45%. If the re-pick adds or drops that person after the solve, the top-band liability rows move by that amount times their weight, and no row is left to pull them back. Suggested fix: pick one of these and write it into the plan.
Run the re-pick before the last solve, not after it.
Or keep the post-calibration step, and have its arm report obr.income_tax, the ITL band liabilities and the £200,000-and-over SPI regional liabilities before and after the re-pick, with a tolerance that blocks the step if they move.
Checked and fine
The HMRC salary-sacrifice relief rows (uk_population_targets.json:3471 onward) zero only pension_contributions_via_salary_sacrifice, and users_below_cap and users_above_cap filter on that column alone. The bonus route doesn't enter them.
dwp.workplace_pension.employer_contributions sums employer contributions and the salary route only. That fits ASHE, which doesn't cover bonus sacrifice.
The £2,000 NICs cap starts in April 2029, so it can't reach the 2025 calibration rows.
The stage's period guard (salary_sacrifice.py:729) needs the frame's period to equal the anchor's data_year (2024). The national's time_period is also 2024 (frs_release.json), so a post-calibration rerun with the same anchor gets past it.
Activity
Receipt arm 3: gates, fit, and the engine checks for items 7, 9, 14 a…
vahid-ahmadi commentedon Nov 6, 2026
Plan review at main
f44512d(policyengine-uk 2.174.1). I worked through the check the proposal asks for first: does any bound row read the bonus sacrifice? Some do, through the annual allowance charge.Should
Bound income tax rows read the bonus column, so a re-pick after calibration moves them. In policyengine-uk 2.174.1:
pension_contributions_via_salary_sacrifice_from_pay.py:30-32addspension_contributions_via_bonus_sacrificeto the salary route;pension_contributions_for_annual_allowance.py:67-70counts that sum as pension input. It also feeds threshold and adjusted income for the taper (FA 2004 s. 228ZA(6),docs/engineering/pension-annual-allowance.md:115);personal_pension_contributions_tax, which is a Step 7 charge (parameters/gov/hmrc/income_tax/step_7_additional_tax.yaml), so it lands inincome_tax_before_winter_fuel_payment_charge.That variable is the
value_variableofobr.income_tax(uk_population_targets.json:2053), ofhmrc.itl.income_tax_by_total_income_band, and of thehmrc.spi_region.income_tax_by_region_*rows, including the £200,000-and-over band where the sacrificers sit. Failure case: take a candidate with adjusted income above £360,000, so their allowance sits at the £10,000 floor, and £20,000 of employer contributions. Without the bonus their chargeable amount is £10,000. Sacrificing a £30,000 bonus raises it to £40,000, which adds roughly £13,500 of charge at 45%. If the re-pick adds or drops that person after the solve, the top-band liability rows move by that amount times their weight, and no row is left to pull them back. Suggested fix: pick one of these and write it into the plan.obr.income_tax, the ITL band liabilities and the £200,000-and-over SPI regional liabilities before and after the re-pick, with a tolerance that blocks the step if they move.Checked and fine
uk_population_targets.json:3471onward) zero onlypension_contributions_via_salary_sacrifice, andusers_below_capandusers_above_capfilter on that column alone. The bonus route doesn't enter them.dwp.workplace_pension.employer_contributionssums employer contributions and the salary route only. That fits ASHE, which doesn't cover bonus sacrifice.salary_sacrifice.py:729) needs the frame's period to equal the anchor'sdata_year(2024). The national'stime_periodis also 2024 (frs_release.json), so a post-calibration rerun with the same anchor gets past it.🤖 Generated with Claude Code