Disability benefits: PIP/DLA/AA/Carer's tests and documentation#77
Open
vahid-ahmadi wants to merge 1 commit into
Open
Disability benefits: PIP/DLA/AA/Carer's tests and documentation#77vahid-ahmadi wants to merge 1 commit into
vahid-ahmadi wants to merge 1 commit into
Conversation
The PIP/DLA/Attendance Allowance amount functions, Carer's Allowance (with earnings test), disability premiums, and passporting into UC/legacy means-tested benefits are already implemented in src/variables/benefits.rs with parameters wired in src/parameters/mod.rs and parameters/2025_26.yaml. This change rounds out issue #44 by adding the missing focused coverage and documentation: - Unit tests for the disability/carer amount functions: enhanced PIP (both components -> expected annual amount), standard PIP daily living, FRS recorded-amount preservation, DLA care + mobility for under-16s, higher-rate Attendance Allowance, and the Carer's Allowance earnings-test cliff-edge boundary (SS (CA) Regs 2002 reg.8). - New LEGISLATIVE_REFERENCE.md section 13A documenting PIP/DLA/AA/Carer's Allowance rates, eligibility, the CA earnings test, and passporting. - Changelog fragment. Co-Authored-By: Claude Opus 4.8 (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.
Addresses #44.
Background
When investigating issue #44, the core disability-benefit modelling was found to already be implemented on
main:src/variables/benefits.rs):pip_daily_living_amount,pip_mobility_amount,dla_care_amount,dla_mobility_amount,attendance_allowance_amount— each computes weekly rate × 52 from FRS rate-band flags, preserving any FRS-recorded amount.calculate_carers_allowance): flat weekly rate × 52 with the net-earnings earnings test (SS (CA) Regs 2002 reg.8).disability_premiums_weekly): DP / EDP / SDP / Carer Premium feeding IS/HB/ESA/JSA applicable amounts.PipParams,DlaParams,AaParams,DisabilityPremiumParams,IncomeRelatedBenefitParamsstructs insrc/parameters/mod.rswith 2025/26 weekly rates set inparameters/2025_26.yaml(annualised ×52 per codebase convention).passthrough_benefits→total_benefits→ household net income.Scope (this PR)
This PR completes the issue by adding the coverage and documentation that were missing:
src/variables/benefits.rs:(110.40 + 77.05) × 52LEGISLATIVE_REFERENCE.md§13A documenting PIP/DLA/AA/Carer's Allowance rates, eligibility, the CA earnings test, and passporting into UC/legacy means-tested benefits.Remaining
ca_min_hours_caring/ca_care_recipient_min_ageparameters are loaded but not yet enforced, since the FRS cannot reliably link carer to care recipient). Similarly the LCWRA flag is a PIP/DLA/ESA proxy rather than a modelled Work Capability Assessment outcome.Tests
cargo buildandcargo testpass — 196 tests, 0 failures.🤖 Generated with Claude Code