Repository navigation
Add assessed Category D pension awards - #2989
juaristi22 wants to merge 3 commits into
Conversation
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in Notes
Moves flagged for reviewNone. Spending by benefit and service
Caseloads
Household net income by decileNo household's net income changes in any year. No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkThe check raised each of 101 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.
Provenance
Dataset: Receipts by tax head: head levels
Spending by benefit and service: head levels
Caseloads: head levels
Government balance, each component counted once: head levels
Model totals: head levels
Household income totals: head levels
Population: head levels
Poverty rates: head levels
People in poverty: head levels
Inequality: head levels
Mean household net income in each side's own deciles: head levels
Standard reform costings (change in gov_balance): head levels
Standard reforms: change in each reform's target: head levels
|
vahid-ahmadi
left a comment
There was a problem hiding this comment.
Quick pass. The route is well scoped: explicit assessment inputs, the reported total as the default, and the exclusions listed. I found one bug.
category_d/amount.yaml has no uprating. It has one value, £110.75 from 6 April 2026, and no metadata to project it forward. So from 2027-28 the Category D rate stays at £110.75 while basic_state_pension/amount.yaml rises with gov.economic_assumptions.indices.triple_lock. The balance p.amount × 52 − basic then shrinks every year, and it disappears once a person's basic pension passes the frozen rate.
The Up-rating Orders have raised Category D by the same percentage as the basic pension (for example, both rose 8.5% in April 2024). Copying the basic pension's uprating: gov.economic_assumptions.indices.triple_lock, with the same 5p rounding, would fix it. A YAML case in 2027 would pin it.
Smaller points:
- Since
amountonly has a value from 2026-04-06, an assessed case in 2025-26 or earlier gets £0. That's consistent with the PR's 2026-27 scope, but either an earlier value (£105.70 in 2025-26) or a test that pre-2026 assessed cases are refused would make it explicit. - The age addition goes once per person across B, D and the components, which is right (SSCBA s.79).
Review drafted with AI assistance and checked against the code at 3dfef304c81b5f11c892311589425e979b33d191.
|
Following the Category D uprating review: Critical fixedCategory D now uses the triple-lock index and joins the existing weekly-rate projection with 5p rounding. The enacted £110.75 rate from 6 April 2026 remains intact. The DWP proposed 2027–28 table independently supplies the £115.05 weekly regression value; that value is proposed/projected and has not been treated as enacted 2027 law. Should-address fixedThe capability guard now supports model years from 2026, allowing projected 2027 and later assessments. It still refuses pre-2026 assessed cases. Added full and partial 2027 monetary cases and extended the shared rounding properties to Category D. The original 18 monetary cases and reported-mode controls remain intact; the registry records verification through 2027. VerificationAfter integrating the actual base, the mixed YAML/Python manifest passed all 224 tests: all 212 prior tests plus 12 upstream registry checks. The earlier 122-test registry rerun overlaps this final manifest and adds no separate tests to that count. Independent functional verification returned CLEAN. The broader suite and documentation build were not rerun for this fix. Axiom parity evidence remains needed, C1 remains open, and this PR remains Draft. The existing request to approve publication of the Foundation parity evidence remains pending; this update does not publish it or establish external parity. |
Partially addresses #2339.
axiom: needed — Category D mirror and numerical-companion parity evidence remains incomplete (C1 open).
People aged 80 or older with a small or no Category A/B pension can receive a Category D pension, but a reported pension total may already include it. This adds an explicit assessment route using known pension components and externally assessed residence, claim and payment facts. It replaces the reported allocation and includes the D balance and one age addition in the existing State Pension, tax, Pension Credit and budget paths.
The route covers ordinary Great Britain cases with stable 52-week facts from supported model year 2026. Assessed cases before 2026 remain refused; that boundary describes model coverage. Category D now shares the basic/new pension projection's triple-lock index and 5p weekly rounding, so assessments can use projected rates from 2027 onward. The enacted rate remains £110.75 from 6 April 2026. The 2027 regression uses £115.05 per week, as listed in the DWP proposed 2027–28 table; this is a proposed/projected rate, not enacted 2027 law.
The route excludes Category C elections, GMP/deferral increments, international residence routes, other personal-benefit overlaps and partial-year cases. Reported receipts remain the default. The broader issue stays open. The documentation explains the assessment inputs and the automatic claim exception.
Sources:
Validation:
mystexecutable.Reproducer: policyengine_uk/tests/policy/baseline/gov/dwp/state_pension/category_d.yaml
The Category D companion remains absent from the captured RuleSpec tree. The signed encoder remains unavailable in this runtime; no manual RuleSpec or signed/billed encoder run was performed.
This PR remains Draft while C1 parity evidence and its approved publication remain incomplete. The existing request to approve publication of the Foundation parity evidence remains pending. This follow-up neither publishes that evidence nor certifies external parity.