Add PIP points-based assessment scaffold (#1069)#1661
Open
vahid-ahmadi wants to merge 1 commit intomainfrom
Open
Add PIP points-based assessment scaffold (#1069)#1661vahid-ahmadi wants to merge 1 commit intomainfrom
vahid-ahmadi wants to merge 1 commit intomainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First slice of the PIP points-based assessment from Schedule 1, Parts 2 and 3 of the Social Security (PIP) Regulations 2013.
gov.dwp.pip.{daily_living,mobility}.points_thresholds.{standard,enhanced}parameters (8 / 12 points per the regulations).pip_dl_pointsandpip_m_points.pip_dl_categoryandpip_m_categoryenums 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).LHA.yaml,uc_non_dep_deduction_exempt.yaml,bursary_fund_16_to_19.yaml).pip_*_pointsshould leak into baseline).🤖 Generated with Claude Code