Skip to content

Widen disability benefit flags from reported amounts#416

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/widen-disability-benefit-flags-400
May 24, 2026
Merged

Widen disability benefit flags from reported amounts#416
MaxGhenis merged 1 commit into
mainfrom
codex/widen-disability-benefit-flags-400

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • widen is_disabled_for_benefits to include AA, SDA, incapacity benefit, IIDB, AFCS, and ESA reported amounts
  • treat Attendance Allowance as a severe-disability signal, and higher-rate AA as an enhanced-disability signal
  • update focused disability-benefit tests for the wider base flag and AA-derived stronger flags

Closes #400

Tests

  • uv run --python 3.13 --frozen ruff format --check policyengine_uk_data/datasets/disability_benefits.py policyengine_uk_data/tests/test_disability_benefits.py
  • uv run --python 3.13 --frozen ruff check policyengine_uk_data/datasets/disability_benefits.py policyengine_uk_data/tests/test_disability_benefits.py
  • uv run --python 3.13 --frozen pytest policyengine_uk_data/tests/test_disability_benefits.py policyengine_uk_data/tests/test_frs_only_imputation.py::test_frs_only_recomputes_disability_flags_after_amount_imputation -q
  • git diff --check

@MaxGhenis MaxGhenis merged commit 043e655 into main May 24, 2026
4 checks passed
@MaxGhenis MaxGhenis deleted the codex/widen-disability-benefit-flags-400 branch May 24, 2026 18:17
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.

is_disabled_for_benefits derivation excludes AA / ESA / SDA / incapacity recipients

1 participant