Repository navigation
Require a reg. 12(2) course for the reg. 60(1) education protection - #2927
Conversation
SI 2014/1230 reg. 60(1) (SR 2016/226 reg. 61(1) in Northern Ireland) protects only a person who fails the education condition on the migration day "because the person is undertaking a full-time course (see regulation 12(2) and 13 ...)". The model's migrated_student limb read only the closure claim and the migration-day qualifying young person status, so it also protected a young person on a non-advanced course with no maintenance funding, who met the condition that day and becomes a qualifying young person once their existing benefit ends. The limb now also needs a full-time course of advanced education or one with a student loan or grant for maintenance, read through undertakes_regulation_12_2_course, which uc_receiving_education now shares. Case 48 of uc_receiving_education.yaml is issue 2878's example (no Universal Credit; it got 5,112.96), case 38 now asserts the exception ends with the course, the oracle and the closure-dates property test require the course, and a fixed example adds an unfunded 18-year-old with a closure claim. Fixes #2878. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 92 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
|
#1910's abolition claim treats the family's claim as a qualifying claim, so without #2927 an 18-year-old on an unfunded non-advanced course whose only existing benefit the abolition ends took the reg. 60(1) exception. The one conflict was the docstring of uc_is_excepted_from_education_condition: it keeps #1910's migration notice assumption for the abolition claim and #2927's course condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, case 48's tax credit, an outcome example - The exception docstring says when a young person whom reg. 28 kept outside the definition on the migration day receives education: from the first day where the claim ends the benefit before the award (a tax credit, reg. 8(2)); where the benefit runs on (reg. 8(2A); SI 2019/1152 reg. 5), they meet the condition and reg. 5(5) keeps them outside the definition. It also says the annual proxy protects a person who starts a reg. 12(2) course after the migration day, and gives Northern Ireland's regs. 6 in place of regs. 5 and 8. - The changelog limits the migration-day statement to a young person an existing benefit kept outside the definition, and cites Northern Ireland's reg. 12(2). - Case 48 says how a single 18-year-old with no child holds Working Tax Credit (SI 2002/2005 reg. 4(1), First variation of the Second condition, para. (a)(ii)). - The receiving-education examples add case 48's claimant, so dropping the course condition now fails test_examples_reach_the_cases on is_uc_eligible, not only on the exception. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one conflict was again the docstring of uc_is_excepted_from_education_condition: it keeps the reg. 48 migration notice assumption for the abolition claim and #2927's account of when an off-course young person receives education. The Northern Ireland sentence also maps reg. 45 to reg. 44, since the notice text now cites reg. 44. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…case 48's Working Tax Credit conditions - The Northern Ireland sentence maps reg. 12(1) for reg. 12(1A) and SR 2019/152 reg. 4 for SI 2019/1152 reg. 5, and the references list both run-on regulations. - Case 48 gives the Working Tax Credit route in the past tense with its 16 hours and reg. 9(1)(c), and its comment is reflowed. - The examples test's docstring names YAML case 48's claimant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one conflict was the Northern Ireland sentence of uc_is_excepted_from_education_condition's docstring: it keeps #2927's regs. 6 and 12(1) mapping and this branch's reg. 45 for reg. 44, and the references gain SR 2016/226 reg. 45. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juaristi22
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-uk
PR number: 2927
Reviewed head SHA: 51e3c11
Merge base SHA: 98381bf
Mode: full
Scope: Changed UC education migration-course gate and affected final Universal Credit results
Source manifest: /private/tmp/policyengine-command-runs/32baa0e3c673/pr-2927-sweep20261124-1458-review-sources.json
Review status: COMPLETE
Source Documents
- uksi-2014-1230-regulation-8.xml — cached original.
- uksi-2014-1230-regulation-48.xml — cached original.
- uksi-2014-1230-regulation-49.xml — cached original.
- uksi-2013-376-regulation-5.xml — cached original.
- uksi-2013-376-regulation-12.xml — cached original.
- uksi-2013-376-regulation-13.xml — cached original.
- uksi-2013-376-regulation-14.xml — cached original.
- nisr-2016-226-regulation-6.xml — cached original.
- nisr-2016-226-regulation-49.xml — cached original.
- nisr-2016-226-regulation-61.xml — cached original.
- nisr-2016-216-regulation-6.xml — cached original.
- nisr-2016-216-regulation-12.xml — cached original.
- uksi-2002-2005-regulation-4.xml — cached original.
- uksi-2002-2005-regulation-9.xml — cached original.
- uksi-2019-1152-regulation-5.xml — cached original.
- nisr-2019-152-regulation-4.xml — cached original.
- uksi-2014-1230-regulation-60.html — cached original.
- nisr-2016-226-regulation-29.html — cached original.
- retained-gb-tp28.xml — cached original.
Critical
None.
Should Address
None.
Suggestions
None.
Evidence Gaps
No material gaps reported.
Notes
- The helper preserves the prior reg. 12(2) receiving-education expression and adds that course requirement to GB reg.60/NI reg.61 migration protection. The unfunded non-advanced-course claimant loses this exception; leaving a course also removes the exception. Both roles found no confirmed defects in the changed scope.
- The annual model reuses current-year course inputs for migration-day and continued-course status. It cannot distinguish a course begun or changed after migration; this retained limitation is documented. The synthetic WTC report represents a pre-closure award, not a demonstrated live2026 WTC entitlement; the example assumes no other education exception, including the unrepresented parental-support route.
- No private population impact assertion adopted. No local model/test run because available core versions are below the required minimum. Existing qualified hosted execution covers changed final awards; YAML raw log acquisition failed, but its job passed and an individually verified property test independently exercises the same final-award case.
Validation Summary
19 official originals (18 fresh, 1 hash-validated same-worktree retained); GB/NI course, migration-day/QYP and closure timing checked. No model/test execution by policy role. Annual course history, unrepresented parental support, synthetic pre-closure WTC report and unadopted private impact claims retained as scope notes. Hosted exact-head run44499671194 attempt1:5affected education property tests each actualPASS with finalUC assertions. Synthetic merge80e7b66 of PR51e3c into98381bf. API and Result ZIPdigest binding; global14,165unique:14,102PASS/61SKIP/2XFAIL. YAMLjob/Lint/allPythonshards/ResultSUCCESS. LocalmodelNOTRUN because availablecorebelow3.34.9; no install/no duplicate tests. Hosted run: https://github.com/PolicyEngine/policyengine-uk/actions/runs/44499671194 . Individual five-test mapping and digest bindings: /tmp/policyengine-command-runs/32baa0e3c673/pr-2927-sweep20261124-1458-test-outcome-mapping.json . Snapshot removed normally. Both assigned reports and skill receipts retained.
Timing
elapsed seconds: 480.19s; setup seconds: 6.53s; parallel review seconds: 345.37s; policy role seconds: 336.29s; code role seconds: 301.39s; adjudication seconds: 0.00s; consolidation cleanup seconds: 96.39s
Review Severity
APPROVE. Open findings: 0 critical, 0 should address, 0 suggestions.
#2929 made housing_benefit_eligible's tenure test read benunit_is_renting instead of LHA_eligible. Git merged the formula without a conflict and found two in text. The Housing Benefit notebook takes main's tenure sentence (rent, or a member in social housing) and keeps this branch's continuing-award bullet (housing_benefit_payable_share), accommodation paragraph and abolition section in place of main's "does not yet model the 1 July 2026 end date" line. housing_benefit_eligible.yaml takes main's header on the eight route cases and adds this branch's "before working-age awards were abolished". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #2878.
Summary
SI 2014/1230 reg. 60(1) lifts the Universal Credit education condition for a person who made a qualifying claim and fails the condition on the migration day "because the person is undertaking a full-time course (see regulation 12(2) and 13 ...)". UC Regs 2013 reg. 12(2) covers a full-time course of advanced education, or another full-time course with a student loan or grant for maintenance. Northern Ireland applies the same rule under SR 2016/226 reg. 61(1).
On
main,uc_is_excepted_from_education_condition'smigrated_studentlimb reads only the closure claim and the migration-day qualifying young person status. So it also protects a young person on a non-advanced course with no maintenance funding. That person met the condition on the migration day, because reg. 28 kept them out of the qualifying young person definition and reg. 12(2) doesn't cover their course, so reg. 60(1) doesn't reach them. Where the claim ends their existing benefit before the award starts, as it ends a tax credit (reg. 8(2)), they count as a qualifying young person from the first day and receive education under reg. 12(1A). They fail the condition, and onmainthe exception wrongly lifts it.Change
undertakes_regulation_12_2_course(new helper inuc_receiving_education.py): full-time, and advanced education (current_educationtertiary orin_HE) or maintenance funding (has_education_maintenance_funding).uc_receiving_educationnow reads it, with the same result as before.uc_is_excepted_from_education_condition:migrated_studentalso needs that course. The model reads the model year's course inputs both for the migration day and for "continuing to undertake that course", so a person who leaves the course loses the protection that year. The same proxy gives the protection, in a later year, to a person who starts such a course after the migration day, which the law doesn't; the docstring says so.Issue #2878's third point, Working Tax Credit on the first day of a claim, is #2918.
Tests
uc_receiving_education.yamlcase 48 is the issue's example: a single 18-year-old in North East England in 2026 on a full-time non-advanced course with no maintenance funding, £9,000 of earnings, a £6,000 council rent and a Working Tax Credit report, whose family claims at the closure. They hold the credit through a disability that puts them at a disadvantage in getting a job, the only route for a single claimant under 25 with no child (SI 2002/2005 reg. 4(1)). The exception is now false and Universal Credit 0. Before, the model paid 12 × £338.58 + £6,000 − 55% × £9,000 = £5,112.96. Case 42, the same person with maintenance funding, keeps the protection and £4,062.96.test_uc_receiving_education_properties.py: the oracle requires the reg. 12(2) course for reg. 60(1). Fixed examples add an unfunded 18-year-old with a closure claim beside the funded one, and case 48's claimant, who gets no Universal Credit.test_reg_60_protection_follows_the_closure_datesexpects the exception only for full-time students.Local runs at
7f5e7230b: 29 YAML files on the closure, education and young person paths, 453 passed;test_uc_receiving_education_properties.py, 5 passed. With the earliermigrated_studentswapped back in, cases 38 and 48 fail, and so dotest_education_condition_invariants,test_examples_reach_the_casesandtest_reg_60_protection_follows_the_closure_dates.6404b6595and51e3c1121change comments, the docstring and its references, the changelog, and the property test's examples and their expected values, but no formula.test_uc_receiving_education_properties.pygives 5 passed at6404b6595(51e3c1121changes only its docstring), anduc_receiving_education.yaml48 passed at51e3c1121. Without the course condition,test_examples_reach_the_casesnow fails on case 48's claimant's eligibility, not only on the exception.Interaction with #1910
#1910 abolishes working-age Housing Benefit and, by default, gives a family whose award ends a closure claim. That adds a route into this defect. For example, in Northern Ireland an 18-year-old whose only Housing Benefit is a rate rebate, on an unfunded non-advanced course, would get the exception and £4,062.96 of Universal Credit. #1910 contains this change and adds that case (cases 49 and 50 of
uc_receiving_education.yaml), so either PR can merge first.axiom: TheAxiomFoundation/rulespec-uk#514 queued (SI 2014/1230 reg 60(1) needs a reg 12(2) course)
Reproducer:
policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml::Case 48, the 18-year-old of case 42 without maintenance funding gets no Universal Credit when the model derives the closure.🤖 Generated with Claude Code