Skip to content

Add PIP points-based assessment scaffold (#1069)#1661

Open
vahid-ahmadi wants to merge 1 commit intomainfrom
vahid-ahmadi/issue-1069-pip-points
Open

Add PIP points-based assessment scaffold (#1069)#1661
vahid-ahmadi wants to merge 1 commit intomainfrom
vahid-ahmadi/issue-1069-pip-points

Conversation

@vahid-ahmadi
Copy link
Copy Markdown
Collaborator

Summary

First slice of the PIP points-based assessment from Schedule 1, Parts 2 and 3 of the Social Security (PIP) Regulations 2013.

  • Adds gov.dwp.pip.{daily_living,mobility}.points_thresholds.{standard,enhanced} parameters (8 / 12 points per the regulations).
  • Adds person-level integer inputs pip_dl_points and pip_m_points.
  • Adds formulas to the existing pip_dl_category and pip_m_category enums that derive the category from points. OpenFisca treats inputs as authoritative over formulas, so the existing FRS-supplied categories continue to win and baseline microsim runs are unaffected.

This is intentionally a small, non-breaking foundation. Per-activity descriptor inputs (10 daily living + 2 mobility) and an FRS imputation step that decomposes existing category awards into descriptor scores are left for follow-up PRs — they are heavier and need data review.

Refs #1069.

Test plan

  • policyengine-core test policyengine_uk/tests/policy/baseline/gov/dwp/pip_points.yaml -c policyengine_uk — 8 cases pass (zero points → NONE; 7 → NONE; 8 → STANDARD; 11 → STANDARD; 12 → ENHANCED; mobility same; input-category-overrides-points).
  • Existing PIP-touching tests still pass (LHA.yaml, uc_non_dep_deduction_exempt.yaml, bursary_fund_16_to_19.yaml).
  • Reviewer: confirm the input-overrides-formula assumption holds for the FRS pipeline (no PIP category derived from pip_*_points should leak into baseline).

🤖 Generated with Claude Code

Encode the Schedule 1 Part 2/3 points thresholds as parameters and add
`pip_dl_points` / `pip_m_points` person-level inputs. The existing
`pip_dl_category` and `pip_m_category` enums now have formulas that derive
the award category from points; data-set-supplied categories continue to
win because OpenFisca treats inputs as authoritative over formulas.

This is the first slice toward the full points system. Per-activity
descriptor inputs and an FRS imputation step are intentionally left for
follow-up PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vahid-ahmadi vahid-ahmadi self-assigned this May 6, 2026
@vahid-ahmadi vahid-ahmadi requested a review from MaxGhenis May 6, 2026 11:30
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