Merged
Conversation
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
Policy shape
This is intentionally a partial model.
GOV.UK publishes the annual DSA cap and the main eligibility rules, but actual awards depend on an individual needs assessment rather than a public formula. So this PR models:
It does not try to invent a synthetic average award curve.
Validation
Local checks passed:
uvx ruff check policyengine_uk/variables/gov/dfe/disabled_students_allowance policyengine_uk/variables/gov/gov_spending.py policyengine_uk/variables/household/income/household_benefits.py policyengine_uk/variables/household/income/hbai_benefits.pyuv run policyengine-core test policyengine_uk/tests/policy/baseline/gov/dfe/disabled_students_allowance/disabled_students_allowance.yamlFocused policy tests cover:
Current baseline
On the local
enhanced_frs_2023_24check at2025:disabled_students_allowancespend:£002.29%7.34%0.088%That zero baseline is expected here because the amount side is explicit-cost driven and the survey does not observe DSA needs-assessment costs. So this PR adds the correct policy surface, but it is not calibration-ready on its own yet.