Skip to content

Fix UC standard allowance reforms being ignored (#1472)#1507

Open
MaxGhenis wants to merge 5 commits intomainfrom
fix-uc-reform
Open

Fix UC standard allowance reforms being ignored (#1472)#1507
MaxGhenis wants to merge 5 commits intomainfrom
fix-uc-reform

Conversation

@MaxGhenis
Copy link
Collaborator

Summary

  • UC standard allowance reforms now work correctly
  • Moved rebalancing uplift logic from set_input() in uc_reform.py into the uc_standard_allowance formula itself
  • User reforms to gov.dwp.universal_credit.standard_allowance.amount are now respected

Root cause

The UC rebalancing scenario used sim.set_input("uc_standard_allowance", year, ...) during Simulation.__init__(), which baked values BEFORE user reforms were applied. The formula was never called, so parameter reforms were silently ignored.

Fix

The formula now reads the rebalancing parameters (rebalancing.active and rebalancing.standard_allowance_uplift) and applies the uplift multiplicatively to the base amount. Since the formula always runs, user reforms to the base amount are respected.

Test plan

  • New test: reform doubling UC SA amount produces doubled output
  • Test fails on old code, passes on fix
  • All existing tests pass

Fixes #1472

MaxGhenis and others added 5 commits February 23, 2026 13:58
Move the rebalancing standard allowance uplift from set_input in
uc_reform.py into the uc_standard_allowance formula itself. The
set_input approach baked values before user reforms were applied,
causing parameter reforms to be silently ignored.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reforms to the Universal Credit standard allowances do not work

1 participant