Skip to content

Fix UC housing costs element floor#1755

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/fix-uc-housing-costs-floor-20260604
Jun 4, 2026
Merged

Fix UC housing costs element floor#1755
MaxGhenis merged 1 commit into
mainfrom
codex/fix-uc-housing-costs-floor-20260604

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

Summary

  • Floor the Universal Credit housing costs element at zero after non-dependent deductions
  • Add a YAML regression where non-dependent deductions exceed eligible housing costs

Validation

  • uv run --python 3.13 policyengine-core test policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/housing_costs_element/uc_housing_costs_element.yaml -c policyengine_uk
  • uv run --python 3.13 ruff format --check policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py
  • uv run --python 3.13 ruff check policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py
  • Axiom local EFRS comparison, 1,000 rows, with this PE worktree plus Axiom award-expression fix: 37,154 compared values, 0 mismatches, 0 oracle divergences

Context

Axiom RuleSpec validation found PE-UK can emit negative uc_housing_costs_element values when non-dependent deductions exceed eligible housing costs. This caused 164 / 37,152 sampled EFRS comparison values to mismatch before this fix.

@MaxGhenis MaxGhenis merged commit 9f1110a into main Jun 4, 2026
9 checks passed
@MaxGhenis MaxGhenis deleted the codex/fix-uc-housing-costs-floor-20260604 branch June 4, 2026 21:15
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.

1 participant